Last updated 6 years ago
Install :
brew install rustup-init rustup-init
rustup update rustup component add rls-preview rust-analysis rust-src
Install the
From :
// hello.rs fn main() { println!("Hello World!"); }
rustc hello.rs ./hello
Each distributed package is called a Crate
To create a new project, then compile and run it:
cargo new rust_example cd rust_example cargo run
Packaging is done with
The primary Crate registry is
A simple starting guide is
to Cargo.toml