From 65b27f076cfb9789873223b803c6c394f91fd47d Mon Sep 17 00:00:00 2001 From: zhfish Date: Sun, 5 Nov 2023 13:39:16 +0800 Subject: [PATCH] chore: vendor openssl for musl (#301) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Update Cargo.toml add openssl's features for musl * Update release.yml * Update Cargo.toml musl * 更新 Cargo.toml --------- Co-authored-by: Yujia Qiao --- .github/workflows/release.yml | 4 ++++ Cargo.toml | 3 +++ 2 files changed, 7 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index fa71f278..c42762f3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -21,6 +21,10 @@ jobs: target: x86_64-unknown-linux-gnu exe: rathole cross: false + - os: ubuntu-latest + target: x86_64-unknown-linux-musl + exe: rathole + cross: false - os: ubuntu-latest target: aarch64-unknown-linux-musl exe: rathole diff --git a/Cargo.toml b/Cargo.toml index 1c8ca739..bcd2295e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -85,6 +85,9 @@ tokio-util = { version="0.7.9", optional = true, features = ["io"] } futures-core = { version="0.3.28", optional = true } futures-sink = { version="0.3.28", optional = true } +[target.'cfg(target_env = "musl")'.dependencies] +openssl = { version = "0.10", features = ["vendored"] } + [build-dependencies] vergen = { version = "7.4.2", default-features = false, features = ["build", "git", "cargo"] } anyhow = "1.0"