cargo
Cargo — Rust's package manager.
| reference | description |
|---|---|
| concepts | package, crate, target, registry, cargo home |
| manifest | Cargo.toml, package, lib, crate-type |
| dependencies | dependencies, version requirements, git/path deps |
| features | features, feature unification, resolver |
| workspaces | workspace, members, virtual manifest, inheritance |
| profiles | profile.dev, opt-level, lto, panic, debug |
| build-scripts | build.rs, build dependencies, OUT_DIR, cargo::rerun |
| config | .cargo/config.toml, config hierarchy, rustflags |
| registries | crates.io, custom registries, source replacement |
| commands | cargo build/test/run/add/update, common flags |
| environment | CARGO_HOME, CARGO_PKG_*, RUSTFLAGS, build env vars |
| lockfile | Cargo.lock, lockfile format, cache, target directory |