March 17, 2022
Using cargo-edit to simplify dependency management
Getting back into Rust, I want to start documenting my journey to getting a small service running. The first "problem" I had to solve was to add dependencies to the project.
The official method is to add the dependencies manually in your Cargo.toml file. However, this is not convenient, and could lead to errors quite easily.
Thankfully, you can make this easier using cargo-edit. This will let you add, remove, upgrade dependencies or set-version of your crate.
Read more