cargo new
cargo run
cargo build [--target riscv64imac-unknown-non-elf]
cargo install cargo-binutils
rustc
rustc --version --verbose
rustc --print target-listrustc -Z unstable-options --print target-spec-json --target riscv64imac-unknown-none-elf
rustup
rustup target add riscv64imac-unknown-none-elf
rustup component add llvm-tools-preview
rust-objdump
原文:https://www.cnblogs.com/chengyh23/p/12625654.html