Rust - Getting Started

Installation #

See documentation.

To update Rust:

rustup update

To uninstall:

rustup self uninstall

Documentation #

Tools #

Cargo #

To start a new project:

cargo new hello_world

To build:

carbo build

# To build for release:

cargo build --release

# Type checks (faster than "build"):

cargo check

To compile and execute the project:

cargo run

To update dependencies:

cargo update

To generate and show the documentation of all dependencies:

cargo doc --open

Language Server #

rustup component add rls