First steps with Rust: February, 26 2022.
Go to Rust and install it with one of the options.
Go to Rustup and install it with one of the options.
Cargo is the package manager for Rust (something like NPM and YARN for Node).
In order to create a new project in Rust, you can run:
cargo new project_name
And then it will create a folder called project_name
with a Cargo.lock
and Cargo.toml
files AND a src
folder containing a main.rs
file.
It's similar to package.json
.
cargo run
The executable file will be at target/debug/project_name
.
cargo test
rustc --version
- Rust