Rust and Cargo 1 · Dependencies

Add a dependency

Add a crate to Cargo.toml, here serde with its derive macros.

cargo add serde --features derive

Official Rust and Cargo 1 documentation

More dependencies commands

All dependencies commands · Rust and Cargo 1 cheatsheet

Was this page helpful?