如何在 Mac 上为 Linux 交叉编译 Rust 程序

鸟窝 at 
摘译自: Rust on Lambda, 其它参考: Cross-compiling a simple Rust web app、How to Cross-Compile from Mac to Linux on Rust、MUSL support for fully static binaries、Cross-compile and link a static binary on macOS for Linux with cargo and rust 目标是创建 x86_64-unknown-linux-musl 平台的应用程序,通过静态连接 musl, 不再依赖 glibc 库。在 Lin……