Install & hello!
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
- Note: This will not work with centos/rhel6, since the curl version is too old and ssl1.2 is not patched.
- Download it as a script and execute it if you're dealing with such kind of platform.
- you will need cc(gcc) installed, and of course internet connection.
- install with default setting, this will add rustc, cargo, rustup into your shell env.
cargo new hello
, cd hello
, cargo run hello
then you will get the most important message: hello world.
some useful commands:
rustup update: update rust
To be continued...