rust 在windows系统上构建linux可执行程序
作者:互联网
安装 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
标签:cargo,target,windows,unknown,64,linux,可执行程序,x86 来源: https://www.cnblogs.com/hailspace/p/16087848.html