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]]
|
[[package]]
|
||||||
name = "termion"
|
name = "termion"
|
||||||
version = "1.5.5"
|
version = "1.6.0"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "git+https://gitlab.com/TheLostLambda/termion.git#70159e07c59c02dc681db3b38dea16c295610ffa"
|
||||||
checksum = "c22cec9d8978d906be5ac94bceb5a010d885c626c4c8855721a4dbd20e3ac905"
|
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"libc",
|
"libc",
|
||||||
"numtoa",
|
"numtoa",
|
||||||
"redox_syscall",
|
"redox_syscall",
|
||||||
"redox_termios",
|
"redox_termios",
|
||||||
|
"serde",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@ serde_yaml = "0.8"
|
||||||
signal-hook = "0.1.10"
|
signal-hook = "0.1.10"
|
||||||
strip-ansi-escapes = "0.1.0"
|
strip-ansi-escapes = "0.1.0"
|
||||||
structopt = "0.3"
|
structopt = "0.3"
|
||||||
termion = "1.5.5"
|
termion = { git = "https://gitlab.com/TheLostLambda/termion.git", features = ["serde"] }
|
||||||
termios = "0.3"
|
termios = "0.3"
|
||||||
unicode-truncate = "0.1.1"
|
unicode-truncate = "0.1.1"
|
||||||
unicode-width = "0.1.8"
|
unicode-width = "0.1.8"
|
||||||
|
|
@ -32,3 +32,6 @@ features = ["unstable"]
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
insta = "0.16.1"
|
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();
|
let handle_key = instance.exports.get_function("handle_key").unwrap();
|
||||||
for key in input_bytes.keys() {
|
for key in input_bytes.keys() {
|
||||||
if let Ok(key) = key {
|
if let Ok(key) = key {
|
||||||
dbg!(key);
|
dbg!(serde_json::to_string(&key));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue