安装Rust
根据 https://www.rust-lang.org/tools/install 的说法,下载rustup-init.exe
运行--卡死--Ctrl C--运行--卡死,典型的国内安装症状
Mirror在哪里,怎么配mirror?环境变量
RUSTUP_DIST_SERVER=https://mirrors.ustc.edu.cn/rust-static
RUSTUP_UPDATE_ROOT=https://mirrors.ustc.edu.cn/rust-static/rustup
Hello World!
先看看doc
rustup doc
> mkdir "%USERPROFILE%\projects"
> cd /d "%USERPROFILE%\projects"
> mkdir hello_world
> cd hello_world
main.rs
fn main() {
println!("Hello, world!");
}
> rustc main.rs
> .\main.exe
Hello, world!