Install Rust on Linux Mint 21.1 (Over VirtualBox)
This video show steps to install Rust (1.67.1) on Linux Mint 21.1 (over
VirtualBox).
To install Rust on Linux (or macOS), enter the command in Terminal:
$ curl --proto '=https' --tlsv1.3 https://sh.rustup.rs -sSf | sh
The command downloads a script and starts the installation of the rustup tool,
which installs the latest stable version of Rust.
ref:
~ https://doc.rust-lang.org/book/ch01-01-installation.html
After Rust installed, you can follow the steps in the video to
try your first Hello World using rustc, or using Cargo.
rustc is fine for simple programs. But as your project grows, you’ll want
to manage all the options and make it easy to share your code.
Cargo will help you write real-world Rust programs.
Cargo is
Rust’s build system and package manager. Most Rustaceans use this tool to
manage their Rust projects because Cargo handles a lot of tasks for you,
such as building your code, downloading the libraries your code depends on,
and building those libraries.
To update Rust:
$ rustup update
To uninstall Rust:$ rustup self uninstall
Comments
Post a Comment