You can use dev-dependencies to specify dependencies that will be used for tests and examples but not for the crate itself.
kaj
4
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Small project, two files in two locations | 11 | 533 | July 2, 2022 | |
| Cargo test internal packages | 10 | 4290 | April 1, 2016 | |
| Put dependencies in .rs file | 3 | 769 | May 12, 2018 | |
| Is it a good idea to have one crate with [[bin]] and [lib]? | 4 | 2978 | July 9, 2016 | |
| Running `cargo test` without cargo | 2 | 3383 | August 26, 2019 |