📜  rust cross compile - C 编程语言代码示例

📅  最后修改于: 2022-03-11 15:04:36.944000             🧑  作者: Mango

代码示例1
// To cross compile, first you need to add a target
rustup target add 
// Then you need to build, passing the target flag
cargo build --target=

// To see a list of available targets:
rustup target list

//To remove a previously-added target
rustup target remove

// Supported platforms:
https://doc.rust-lang.org/nightly/rustc/platform-support.html