Compare commits

...

2 Commits

Author SHA1 Message Date
zhfish 65b27f076c
chore: vendor openssl for musl (#301)
* Update Cargo.toml

add openssl's features for musl

* Update release.yml

* Update Cargo.toml

musl

* 更新 Cargo.toml

---------

Co-authored-by: Yujia Qiao <rapiz3142@gmail.com>
2023-11-05 13:39:16 +08:00
blueskea e08b2a9e92
docs: build with openssl (#303) 2023-11-05 13:38:39 +08:00
3 changed files with 8 additions and 0 deletions

View File

@ -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

View File

@ -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"

View File

@ -6,6 +6,7 @@ To use default build settings, run:
```
cargo build --release
```
You may need to pre-install [openssl](https://docs.rs/openssl/latest/openssl/index.html) dependencies in Unix-like systems.
## Customize the build
`rathole` comes with lots of *crate features* that determine whether a certain feature will be compiled or not. Supported features can be checked out in `[features]` of [Cargo.toml](../Cargo.toml).