From 175c21600cc90463164cca49511468a1d0b9bcbd Mon Sep 17 00:00:00 2001 From: Echo Date: Sun, 17 May 2026 17:18:35 +0000 Subject: [PATCH] fix(ci): disable reqwest default features to eliminate OpenSSL on musl builds Requiring default-features=false on reqwest prevents native-tls/openssl-sys from being pulled in as transitive dependencies, which broke static linking on Alpine musl target. Also reverts invalid openssl-static package from CI. - Cargo.toml: add default-features = false to reqwest dependency - ci.yml: revert non-existent openssl-static package --- .gitea/workflows/ci.yml | 2 +- Cargo.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index e3918e3..8774576 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -277,7 +277,7 @@ jobs: echo "$HOME/.cargo/bin" >> "$GITHUB_PATH" - name: Install build dependencies run: | - apk add --no-cache alpine-sdk rust cargo openssl-dev openssl-static elogind-dev musl-dev abuild gcc + apk add --no-cache alpine-sdk rust cargo openssl-dev elogind-dev musl-dev abuild gcc - name: Build release binary run: cargo build --release --target x86_64-unknown-linux-musl - name: Build Alpine package diff --git a/Cargo.toml b/Cargo.toml index c2d8983..1a96694 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -64,7 +64,7 @@ addr = "0.15" if-addrs = "0.13" # HTTP client for enrollment communication -reqwest = { version = "0.12", features = ["json", "rustls-tls"] } +reqwest = { version = "0.12", default-features = false, features = ["json", "rustls-tls"] } # Clap for CLI arguments clap = { version = "4", features = ["derive", "env"] }