More often than one might expect, I find myself setting up a new environment for rust development.
Here are some things that I end up doing repeatedly.
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
cargo install cargo-watch
sudo apt install libpq-dev
cargo install diesel_cli --no-default-features --features postgres
cargo install mdbook
Get rustup to manage rust language versions.
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
Install cargo-watch for rapid feedback while iterating.
cargo install cargo-watch
https://github.com/passcod/cargo-watch
Install the diesel client for database management. (Here requiring postgres only)
sudo apt install libpq-dev
cargo install diesel_cli --no-default-features --features postgres
https://diesel.rs/guides/getting-started/
I like to write books using mdbook, so I install that everywhere as well.
cargo install mdbook