Install Rust (in Mac OS):
brew install rustup
rustup-init
Install the needed Rust toolchain:
rustup toolchain install nightly
Override the toolchain to use for the current project:
rustup override set nightly
To check the toolchain that Cargo will use by default, you can use the following command:
rustup show
Use in release mode (huge difference in performance) by running the following command in your project directory:
cargo build --release
Run the project by running the following command in your project directory:
cargo run --release