aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrooks J Rady <b.j.rady@gmail.com>2021-01-07 12:20:52 +0000
committerBrooks J Rady <b.j.rady@gmail.com>2021-01-07 12:20:52 +0000
commit6e1940120045f2518ab7b7587cee1004e8d18815 (patch)
tree5cd4e246c8b2bb62fb1c6c19a53254eae7b66883
parentMassively optimise the strider WASM file (diff)
downloadsl0ppij-6e1940120045f2518ab7b7587cee1004e8d18815.tar.gz
sl0ppij-6e1940120045f2518ab7b7587cee1004e8d18815.tar.xz
sl0ppij-6e1940120045f2518ab7b7587cee1004e8d18815.zip
Add LTO and use a termion fork with serde support
-rw-r--r--Cargo.lock6
-rw-r--r--Cargo.toml5
-rw-r--r--src/main.rs2
3 files changed, 8 insertions, 5 deletions
diff --git a/Cargo.lock b/Cargo.lock
index eb4f1770..e887b40d 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -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]]
diff --git a/Cargo.toml b/Cargo.toml
index 9103a685..a231a45b 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -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 \ No newline at end of file
diff --git a/src/main.rs b/src/main.rs
index 0b0c853d..a0ee4f91 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -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));
}
}
}