curl https://sh.rustup.rs -sSf | sh
使用brew各种出错,还慢。
rustc --version
cargo --version
名为hello.rs
fn main() { println!("Hello World!"); }
rustc hello.rs
./hello
mac安装rust
原文:https://www.cnblogs.com/c-x-a/p/11959149.html