Skip to content

Files

Latest commit

author
Jesus Guzman, Jr
Sep 15, 2021
4dac5fc · Sep 15, 2021

History

History

rust

Rust Implementation

Setup

Rust

Install the xcode command line tools.

xcode-select --install

Install the Rust toolchain version manager.

brew install rustup

Install the latest Rust toolchain. This will install the latest rustc (the compiler), cargo (the package manager), and update rustup (the toolchain version manager).

rustup-init

Install the source file watcher cargo-watch.

cargo install cargo-watch

Install the outdated dependency checker cargo-outdated.

cargo install cargo-outdated

Install the linter clippy.

rustup component add clippy

Development

Automatically build and run on source changes.

cargo watch -x run

Make a debug build.

cargo build

Run unit tests.

cargo test

Make a production build.

cargo build --profile production

Clear build artifacts.

cargo clean

Check for outdated dependencies.

cargo outdated