Keep test-only crates out of the normal build graph.
Section: Dependencies
Add dev-dependencies
toml
toml
[dev-dependencies]
assert_cmd = "2"
predicates = "3"Explanation
Development dependencies are compiled for tests, examples, and benches.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Dependencies