【Rust】rustで別プラットフォームのバイナリにコンパイルしたいならターゲットを追加する必要がある
#rust
#tips
https://stackoverflow.com/questions/75728110/how-do-i-compile-a-cargo-project-for-other-platforms
ターゲットをlinuxにする場合
$ rustup target add x86_64-unknown-linux-gnu
$ cargo build --target x86_64-unknown-linux-gnu