Add LTO and use a termion fork with serde support
This commit is contained in:
parent
5cec3402bf
commit
6e19401200
3 changed files with 8 additions and 5 deletions
6
Cargo.lock
generated
6
Cargo.lock
generated
|
|
@ -1454,14 +1454,14 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "termion"
|
||||
version = "1.5.5"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "c22cec9d8978d906be5ac94bceb5a010d885c626c4c8855721a4dbd20e3ac905"
|
||||
version = "1.6.0"
|
||||
source = "git+https://gitlab.com/TheLostLambda/termion.git#70159e07c59c02dc681db3b38dea16c295610ffa"
|
||||
dependencies = [
|
||||
"libc",
|
||||
"numtoa",
|
||||
"redox_syscall",
|
||||
"redox_termios",
|
||||
"serde",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ serde_yaml = "0.8"
|
|||
signal-hook = "0.1.10"
|
||||
strip-ansi-escapes = "0.1.0"
|
||||
structopt = "0.3"
|
||||
termion = "1.5.5"
|
||||
termion = { git = "https://gitlab.com/TheLostLambda/termion.git", features = ["serde"] }
|
||||
termios = "0.3"
|
||||
unicode-truncate = "0.1.1"
|
||||
unicode-width = "0.1.8"
|
||||
|
|
@ -32,3 +32,6 @@ features = ["unstable"]
|
|||
|
||||
[dev-dependencies]
|
||||
insta = "0.16.1"
|
||||
|
||||
[profile.release]
|
||||
lto = true
|
||||
|
|
@ -469,7 +469,7 @@ pub fn start(mut os_input: Box<dyn OsApi>, opts: Opt) {
|
|||
let handle_key = instance.exports.get_function("handle_key").unwrap();
|
||||
for key in input_bytes.keys() {
|
||||
if let Ok(key) = key {
|
||||
dbg!(key);
|
||||
dbg!(serde_json::to_string(&key));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue