← Rust Programming learning pathRust Programming · Module 10 of 10
Cargo, testing and real projects
Use crates, tests and build real Rust apps.
📖 Key ideas
- Add crates in Cargo.toml or with cargo add serde.
- Tests: #[test] functions; run cargo test.
- cargo clippy lints; cargo fmt formats.
- Popular crates: serde (JSON), tokio, axum (web), clap (CLIs).
- cargo build --release for optimised binaries.
💡 Real-life example: Cargo is a project manager who orders parts, assembles, tests and ships your product.
Cargo.tomlProject manifest
#[test]Marks a test function
clippyRust linter
serdeSerialisation framework