Rust - noteman1/wiki GitHub Wiki

Rust

languange

Rust lang

installer

Rust installer

MacOS

$ xcode select --install

check tools

$ rustup

check command

$ rustc --version
$ cargo --version

Create project

cargo new project_name
cd project_name
cargo build
cargo run

uninstall rustup

$ rustup self uninstall

extention for vscode

rust-analyzer

WebAssembly

$ cargo install wasm-pack
$ wasm-pack --version
$ wasm-pack new hello
$ cd hello
$ wasm-pack build --target web