安装 linux target
rustup target add x86_64-unknown-linux-musl
修改cargo配置,~/.cargo/config
[target.x86_64-unknown-linux-musl]
linker = "rust-lld"
cargo build --target x86_64-unknown-linux-musl
# 或
cargo build --target x86_64-unknown-linux-musl --release