keyfork-prompt: use vendored keyfork-crossterm
This commit is contained in:
parent
023f6c5dfa
commit
6825ac9cea
|
@ -670,21 +670,6 @@ version = "0.8.19"
|
|||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "248e3bacc7dc6baa3b21e405ee045c3047101a49145e7e9eca583ab4c2ca5345"
|
||||
|
||||
[[package]]
|
||||
name = "crossterm"
|
||||
version = "0.27.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "f476fe445d41c9e991fd07515a6f463074b782242ccf4a5b7b1d1012e70824df"
|
||||
dependencies = [
|
||||
"bitflags 2.4.1",
|
||||
"filedescriptor",
|
||||
"libc",
|
||||
"mio",
|
||||
"parking_lot",
|
||||
"signal-hook",
|
||||
"signal-hook-mio",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "crossterm_winapi"
|
||||
version = "0.9.1"
|
||||
|
@ -1549,7 +1534,7 @@ dependencies = [
|
|||
name = "keyfork-prompt"
|
||||
version = "0.1.0"
|
||||
dependencies = [
|
||||
"crossterm",
|
||||
"keyfork-crossterm",
|
||||
"keyfork-mnemonic-util",
|
||||
"thiserror",
|
||||
]
|
||||
|
|
|
@ -11,6 +11,6 @@ mnemonic = ["keyfork-mnemonic-util"]
|
|||
qrencode = []
|
||||
|
||||
[dependencies]
|
||||
crossterm = { version = "0.27.0", default-features = false, features = ["use-dev-tty", "events", "bracketed-paste"] }
|
||||
keyfork-crossterm = { version = "0.27.1", path = "../keyfork-crossterm", default-features = false, features = ["use-dev-tty", "events", "bracketed-paste"] }
|
||||
keyfork-mnemonic-util = { version = "0.1.0", path = "../keyfork-mnemonic-util", optional = true }
|
||||
thiserror = "1.0.51"
|
||||
|
|
|
@ -3,7 +3,7 @@ use std::{
|
|||
os::fd::AsRawFd,
|
||||
};
|
||||
|
||||
use crossterm::{
|
||||
use keyfork_crossterm::{
|
||||
cursor::MoveTo,
|
||||
terminal::{EnterAlternateScreen, LeaveAlternateScreen},
|
||||
ExecutableCommand,
|
||||
|
|
|
@ -6,7 +6,7 @@ use std::{
|
|||
#[cfg(feature = "mnemonic")]
|
||||
use keyfork_mnemonic_util::Wordlist;
|
||||
|
||||
use crossterm::{
|
||||
use keyfork_crossterm::{
|
||||
cursor,
|
||||
event::{read, DisableBracketedPaste, EnableBracketedPaste, Event, KeyCode, KeyModifiers},
|
||||
style::{Print, PrintStyledContent, Stylize},
|
||||
|
|
|
@ -3,7 +3,7 @@ use std::{
|
|||
os::fd::AsRawFd,
|
||||
};
|
||||
|
||||
use crossterm::terminal;
|
||||
use keyfork_crossterm::terminal;
|
||||
|
||||
use crate::Result;
|
||||
|
||||
|
|
Loading…
Reference in New Issue