name: cargo
binary: cargo
aliases: []
category:
- build
- test
- package-manager
lang:
- rust
summary: Rust package manager and build tool.
homepage: https://github.com/rust-lang/cargo
docs: https://doc.rust-lang.org/cargo/
detect:
version_args:
- --version
local:
files:
- Cargo.toml
- Cargo.lock
dirs: []
package_json:
package_manager_prefixes: []
use_when:
- Build, test, and run Rust projects
avoid_when:
- The current project is not a Rust crate or workspace
risk:
level: medium
effects:
- install_packages
- execute_code
- network_access
- write_files
requires_auth: false
destructive: false
confirmation_required_for:
- publishing crates
guardrails:
- Use cargo for Rust build, test, and run commands when Cargo.toml exists.