From 3ac409ca58927de62a716d9224b648045154c436 Mon Sep 17 00:00:00 2001 From: sigoden Date: Tue, 26 May 2026 08:18:53 +0800 Subject: [PATCH] fix: liblzma dynamic linking issues on MacOS (#712) --- Cargo.lock | 1 + Cargo.toml | 1 + 2 files changed, 2 insertions(+) diff --git a/Cargo.lock b/Cargo.lock index 48dedef..709f0d8 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -654,6 +654,7 @@ dependencies = [ "if-addrs", "indexmap", "lazy_static", + "liblzma", "log", "md5", "mime_guess", diff --git a/Cargo.toml b/Cargo.toml index b7cd2d8..4b46e35 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -22,6 +22,7 @@ serde = { version = "1", features = ["derive"] } serde_json = "1" futures-util = { version = "0.3", default-features = false, features = ["alloc"] } async_zip = { version = "0.0.18", default-features = false, features = ["deflate", "bzip2", "xz", "chrono", "tokio"] } +liblzma = { version = "0.4", features = ["static"] } # avoid dynamic linking issues on MacOS headers = "0.4" mime_guess = "2.0" if-addrs = "0.15"