
摘译自: 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库。