From e7140be11c3d0a6626751f46cd589cd431d9bf19 Mon Sep 17 00:00:00 2001 From: Jordan Doyle Date: Tue, 12 Nov 2024 21:52:55 +0000 Subject: [PATCH] Add feature for using zlib-ng --- Cargo.lock | 20 ++++++++++++++++++++ Cargo.toml | 4 ++++ 2 files changed, 24 insertions(+) diff --git a/Cargo.lock b/Cargo.lock index 6bb1be2..a376f80 100644 --- a/Cargo.lock +++ a/Cargo.lock @@ -392,6 +392,15 @@ checksum = "cbd0f76e066e64fdc5631e3bb46381254deab9ef1158292f27c8c57e3bf3fe59" [[package]] +name = "cmake" +version = "0.1.51" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fb1e43aa7fd152b1f968787f7dbcdeb306d1867ff373c69955211876c053f91a" +dependencies = [ + "cc", +] + +[[package]] name = "comrak" version = "0.28.0" source = "registry+https://github.com/rust-lang/crates.io-index" @@ -738,6 +747,7 @@ checksum = "a1b589b4dc103969ad3cf85c950899926ec64300a1a46d76c03a6072957036f0" dependencies = [ "crc32fast", + "libz-ng-sys", "miniz_oxide", ] @@ -1793,6 +1803,16 @@ "glob", "libc", "libz-sys", +] + +[[package]] +name = "libz-ng-sys" +version = "1.1.20" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8f0f7295a34685977acb2e8cc8b08ee4a8dffd6cf278eeccddbe1ed55ba815d5" +dependencies = [ + "cmake", + "libc", ] [[package]] diff --git a/Cargo.toml b/Cargo.toml index a44ab15..8b64e07 100644 --- a/Cargo.toml +++ a/Cargo.toml @@ -79,9 +79,13 @@ xxhash-rust = { version = "0.8.12", features = ["const_xxh3"] } yoke = { version = "0.7.1", features = ["derive"] } +[features] +zlib-ng = ["flate2/zlib-ng", "gix/zlib-ng"] + [build-dependencies] anyhow = "1.0" rsass = "0.28.0" [package.metadata.deb] section = "web" + -- rgit 0.1.3