From 601ef914b8cd21839ca756180787ec20ea692fa0 Mon Sep 17 00:00:00 2001 From: Jo <10510431+j178@users.noreply.github.com> Date: Wed, 13 Aug 2025 13:52:42 +0800 Subject: [PATCH] Static link `liblzma` (#445) * Static link `liblzma` * Fix --- Cargo.lock | 1 + Cargo.toml | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/Cargo.lock b/Cargo.lock index 28b36002..f741bbdc 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1705,6 +1705,7 @@ dependencies = [ "insta-cmd", "itertools", "libc", + "liblzma", "miette", "owo-colors", "pprof", diff --git a/Cargo.toml b/Cargo.toml index df10e33d..adb86315 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -48,6 +48,9 @@ http = { version = "1.1.0" } indicatif = { version = "0.18.0" } indoc = { version = "2.0.5" } itertools = { version = "0.14.0" } +# Enable static linking for liblzma +# This is required for the `xz` feature in `async-compression` +liblzma = { version = "*", features = ["static"]} miette = { version = "7.5.0", features = ["fancy-no-backtrace"] } owo-colors = { version = "4.1.0" } rand = { version = "0.9.0" } @@ -85,6 +88,9 @@ insta-cmd = { version = "0.6.0" } predicates = { version = "3.1.2" } regex = { version = "1.11.0" } +[package.metadata.cargo-shear] +ignored = ["liblzma"] + [build-dependencies] fs-err = { version = "3.1.0" }