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 mdbookGet rustup to manage rust language versions.
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | shInstall cargo-watch for rapid feedback while iterating.
cargo install cargo-watchhttps://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 postgreshttps://diesel.rs/guides/getting-started/
I like to write books using mdbook, so I install that everywhere as well.
cargo install mdbook