From ea26c6ebc70474c4f4ce70acc9fd42517243819e Mon Sep 17 00:00:00 2001 From: librelois <c@elo.tf> Date: Tue, 18 May 2021 15:42:09 +0200 Subject: [PATCH] perf(wot): compress wot with zlib-ng --- Cargo.lock | 26 ++++++++++++++++++++++++++ neon/native/Cargo.toml | 2 +- 2 files changed, 27 insertions(+), 1 deletion(-) diff --git a/Cargo.lock b/Cargo.lock index a22a38dcc..fc169a0ee 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1362,6 +1362,7 @@ dependencies = [ "cfg-if 1.0.0", "crc32fast", "libc", + "libz-sys", "miniz_oxide", ] @@ -1877,6 +1878,19 @@ version = "0.2.93" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9385f66bf6105b241aa65a61cb923ef20efc665cb9f9bb50ac2f0c4b7f378d41" +[[package]] +name = "libz-sys" +version = "1.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "de5435b8549c16d423ed0c03dbaafe57cf6c3344744f1242520d59c9d8ecec66" +dependencies = [ + "cc", + "cmake", + "libc", + "pkg-config", + "vcpkg", +] + [[package]] name = "lock_api" version = "0.4.3" @@ -2336,6 +2350,12 @@ version = "0.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184" +[[package]] +name = "pkg-config" +version = "0.3.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3831453b3449ceb48b6d9c7ad7c96d5ea673e9b470a1dc578c2ce6521230884c" + [[package]] name = "ppv-lite86" version = "0.2.10" @@ -3401,6 +3421,12 @@ version = "0.7.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "09cc8ee72d2a9becf2f2febe0205bbed8fc6615b7cb429ad062dc7b7ddd036a9" +[[package]] +name = "vcpkg" +version = "0.2.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cbdbff6266a24120518560b5dc983096efb98462e51d0d68169895b237be3e5d" + [[package]] name = "vec_map" version = "0.8.2" diff --git a/neon/native/Cargo.toml b/neon/native/Cargo.toml index 05adbb76a..9fdcb99bd 100644 --- a/neon/native/Cargo.toml +++ b/neon/native/Cargo.toml @@ -20,7 +20,7 @@ bs58 = "0.3.0" dubp = { version = "0.54.1", features = ["duniter"] } dubp-wot = { git = "https://git.duniter.org/nodes/rust/duniter-core" } duniter-server = { path = "../../rust-libs/duniter-server" } -flate2 = "1.0.16" +flate2 = { version = "1.0", features = ["zlib-ng-compat"], default-features = false } flexi_logger = { version = "=0.16.0", default-features = false, features = ["compress"] } flume = "0.10.0" log = "0.4.11" -- GitLab