基础命令
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
rustup update
vi .cargo/config
# 清华源
[source.crates-io]
replace-with = 'tuna'
[source.tuna]
registry = "https://mirrors.tuna.tsinghua.edu.cn/git/crates.io-index.git"
cargo
rustup install nightly
rustup default nightly
rustup component add llvm-tools-preview
rustup component add rust-src
cargo install cargo-binutils
cargo install bootimage
cargo install cargo-xbuild
rustc --print target-list
rustup target add thumbv7em-none-eabihf
cargo new he
cargo build
cargo run
alpine
apk add build-base
ubuntu