mirror of
https://github.com/shadowsocks/shadowsocks-rust.git
synced 2026-02-09 01:59:16 +08:00
feat: CentOS based image config (#1941)
This commit is contained in:
10
Cross-centos.toml
Normal file
10
Cross-centos.toml
Normal 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"
|
||||
@@ -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"
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user