From 01b028d8cff8aeee28275b1d32349805b5e30106 Mon Sep 17 00:00:00 2001 From: eatradish Date: Tue, 15 Apr 2025 04:51:14 +0800 Subject: [PATCH] chore: add `uncheck-liblzma-version` feature liblzma-rs requires a higher version of liblzma to allow dynamic linking by default (see https://github.com/Portable-Network-Archive/liblzma-rs/issues/173 for details), This feature will allow any version of liblzma on the system to use the dynamic linking. --- Cargo.toml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index b11fa184..5f11992d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -33,6 +33,7 @@ zlib = ["flate2"] zstd = ["libzstd", "zstd-safe"] zstdmt = ["zstd", "zstd-safe/zstdmt"] deflate64 = ["dep:deflate64"] +uncheck-liblzma-version = ["liblzma/uncheck_liblzma_version"] [dependencies] brotli = { version = "7.0", optional = true } @@ -45,7 +46,7 @@ lz4 = { version = "1.28.1", optional = true } memchr = "2" pin-project-lite = "0.2" tokio = { version = "1.24.2", optional = true, default-features = false } -liblzma = { version = "0.4.0", optional = true } +liblzma = { version = "0.4.1", optional = true } zstd-safe = { version = "7", optional = true, default-features = false } deflate64 = { version = "0.1.5", optional = true }