mirror of
https://github.com/shadowsocks/shadowsocks-rust.git
synced 2026-02-09 01:59:16 +08:00
22 lines
523 B
Markdown
22 lines
523 B
Markdown
## Build Standalone Binaries
|
|
|
|
### Build with `cross`
|
|
|
|
- Install [`cross`](https://github.com/rust-embedded/cross)
|
|
|
|
```bash
|
|
cargo install cross
|
|
```
|
|
|
|
- Build with cross
|
|
|
|
```bash
|
|
cross build --target x86_64-unknown-linux-musl
|
|
```
|
|
|
|
### Predefined build routines
|
|
|
|
- `build-release`: Build binaries with `cross` and packages outputs into `release` folder
|
|
- `build-host-release`: Build binaries with host's Rust toolchain. *NIX shell script
|
|
- `build-host-release.ps1`: Build binaries with host's Rust toolchain. PowerShell script
|