curl https://sh.rustup.rs -sSf | sh
使用brew各类出错,还慢。curl
rustc --version
cargo --version
名为hello.rsurl
fn main() { println!("Hello World!"); }
rustc hello.rs
./hello