Install rustup:
brew install rustup-initrustup-init
Install Rust Language Server:
rustup updaterustup component add rls-preview rust-analysis rust-src
Install the Rust Language Server VSCode extension
From Rust by Example:
// hello.rsfn main() {println!("Hello World!");}
rustc hello.rs./hello
Packaging is done with Cargo
Each distributed package is called a Crate
The primary Crate registry is Crates.io
A simple starting guide is here
To create a new project, then compile and run it:
cargo new rust_examplecd rust_examplecargo run
Add dependencies to Cargo.toml