docs

Rust

Rust is used for low-level programming and CLI apps.

Installation

Install rustup and select the toolchain for C compiler (gcc or msvc).

Toolchains

Usage

Initialization

cargo new <name>
cd <name>

Dependencies

cargo add <dep1> <dep2>
cargo add <dep3> <dep4> --dev # dev dependencies

Dependencies

Run

cargo run

Build

cargo build

Docs

cargo doc

It outputs in /target directory and must be manually copied to /docs for GitHub Pages.