From 5009ce1cfb99350dc74d1acba64b1c1874ca16db Mon Sep 17 00:00:00 2001 From: griffi-gh Date: Sat, 11 Mar 2023 17:19:03 +0100 Subject: [PATCH] "fast decompress" turned out to be slower lol (stashed) --- kubi-server/Cargo.toml | 3 ++- kubi/Cargo.toml | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/kubi-server/Cargo.toml b/kubi-server/Cargo.toml index 1412cc0..a3e8685 100644 --- a/kubi-server/Cargo.toml +++ b/kubi-server/Cargo.toml @@ -20,8 +20,9 @@ flume = "0.10" rand = "0.8" uflow = "0.7" postcard = { version = "1.0", features = ["alloc"] } -lz4_flex = { version = "0.10", default-features = false, features = ["checked-decode", "std"] } +lz4_flex = { version = "0.10", default-features = false, features = ["std", "checked-decode"] } [features] default = [] +safe_lz4 = ["lz4_flex/safe-encode", "lz4_flex/safe-decode"] nightly = ["rand/nightly", "rand/simd_support", "serde/unstable", "glam/core-simd", "kubi-shared/nightly"] diff --git a/kubi/Cargo.toml b/kubi/Cargo.toml index 0cdb101..a40a297 100644 --- a/kubi/Cargo.toml +++ b/kubi/Cargo.toml @@ -22,7 +22,7 @@ gilrs = { version = "0.10", default_features = false, features = ["xinput"] } uflow = "0.7" postcard = { version = "1.0", features = ["alloc"] } serde_json = { version = "1.0", optional = true } -lz4_flex = { version = "0.10", default-features = false, features = ["checked-decode", "std"] } +lz4_flex = { version = "0.10", default-features = false, features = ["std", "checked-decode"] } [target.'cfg(target_os = "windows")'.dependencies] winapi = { version = "0.3" } @@ -30,5 +30,6 @@ winapi = { version = "0.3" } [features] default = [] generate_visualizer_data = ["serde_json", "shipyard/serde1"] +safe_lz4 = ["lz4_flex/safe-encode", "lz4_flex/safe-decode"] parallel = ["shipyard/parallel"] nightly = ["glam/core-simd", "kubi-shared/nightly"]