Cargo
Cargo Rust package manager and build system. Use for Rust crates.From its SKILL.md
npx -y skills add G1Joshi/Agent-Skills --skill cargoAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 12 stars12 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
1.1 KB, 276 tokens by cl100k_base, as published. Nobody here has run it
Cargo
Cargo is Rust's build system and package manager. It is famous for its reliability and developer experience.
When to Use
- Rust Projects: Mandatory.
- Formatting/Linting:
cargo fmt,cargo clippy. - Testing:
cargo testis built-in.
Quick Start
cargo new my-project
cd my-project
cargo run
# Cargo.toml
[dependencies]
serde = "1.0"
Core Concepts
Crates
Packages. Published to crates.io.
Cargo.lock
Ensures reproducible builds. Always commit for binaries, ignore for libraries.
Workspaces
Manage multiple packages in one repo. [workspace] in root Cargo.toml.
Best Practices (2025)
Do:
- Use
cargo check: Faster thanbuildfor checking syntax during dev. - Use
clippy: Listen to the linter. It teaches you Rust. - Use
cargo-deny: Scan dependency tree for licenses and bans.
Don't:
- Don't bloat: Rust binaries can get huge. Use
cargo-bloatto analyze size.
References
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.