Rust

Installation

Install rustuparrow-up-right:

brew install rustup-init
rustup-init

Install Rust Language Serverarrow-up-right:

rustup update
rustup component add rls-preview rust-analysis rust-src

Install the Rust Language Server VSCode extensionarrow-up-right

Hello World

From Rust by Examplearrow-up-right:

// hello.rs
fn main() {
    println!("Hello World!");
}
rustc hello.rs
./hello

Packaging etc

To create a new project, then compile and run it:

Last updated