feat: CentOS based image config (#1941)

This commit is contained in:
zonyitoo
2025-05-06 12:46:29 +08:00
parent 329c8d1ba5
commit 8407c5138a
3 changed files with 17 additions and 9 deletions

10
Cross-centos.toml Normal file
View File

@@ -0,0 +1,10 @@
[build.env]
passthrough = ["RUSTFLAGS"]
# WARN: GCC 4.8.2 doesn't support <stdatomic.h>
[target.x86_64-unknown-linux-gnu]
image = "ghcr.io/cross-rs/x86_64-unknown-linux-gnu:main-centos"
# GCC 4.8.2 doesn't support ACLE
# https://github.com/briansmith/ring/issues/1728
# [target.aarch64-unknown-linux-gnu]
# image = "ghcr.io/cross-rs/aarch64-unknown-linux-gnu:main-centos"

View File

@@ -33,11 +33,3 @@ build-std = ["std", "panic_abort", "proc_macro"]
build-std = ["std", "panic_abort", "proc_macro"]
[target.mipsel-unknown-linux-musl]
build-std = ["std", "panic_abort", "proc_macro"]
# GCC 4.8.2 doesn't support <stdatomic.h>
# [target.x86_64-unknown-linux-gnu]
# image = "ghcr.io/cross-rs/x86_64-unknown-linux-gnu:main-centos"
# GCC 4.8.2 doesn't support ACLE
# https://github.com/briansmith/ring/issues/1728
# [target.aarch64-unknown-linux-gnu]
# image = "ghcr.io/cross-rs/aarch64-unknown-linux-gnu:main-centos"

View File

@@ -272,13 +272,19 @@ Requirements:
./build/build-release
```
Then `sslocal`, `ssserver`, `ssmanager` and `ssurl` will be packaged in
Then `sslocal`, `ssserver`, `ssmanager`, `ssservice` and `ssurl` will be packaged in
- `./build/shadowsocks-${VERSION}-stable.x86_64-unknown-linux-musl.tar.xz`
- `./build/shadowsocks-${VERSION}-stable.x86_64-pc-windows-gnu.zip`
Read `Cargo.toml` for more details.
For Linux with low GLIBC versions, set `CROSS_CONFIG` to CentOS based image:
```bash
export CROSS_CONFIG=Cross-centos.toml
```
## Getting Started
Generate a safe and secured password for a specific encryption method (`aes-128-gcm` in the example) with: