[[command]]
name = "cargo"
description = "Rust package manager and build system with a very large subcommand surface. Build operations (build, test, check, clippy, doc, bench, run) execute build scripts (build.rs) from every crate in the dependency tree, which can run arbitrary code. install has two modes: `cargo install crate-name` downloads from crates.io (network), while `cargo install --path .` builds from local source only — we allow --path but block positional crate names, --git, --registry, and --index to prevent remote-source installs. fmt without --check rewrites files. publish without --dry-run uploads to a registry. Third-party subcommands (nextest, deny, clippy, etc.) are added via cargo plugins and each has its own flag surface. Cargo releases with each Rust edition (roughly every 6 weeks) and frequently adds new flags."
url = "https://doc.rust-lang.org/cargo/commands/"
bare_flags = ["--help", "--version", "-V", "-h"]
[[command.sub]]
name = "audit"
level = "Inert"
standalone = [
"--deny", "--help", "--json", "--no-fetch", "--stale",
"-h", "-n", "--quiet", "-q", "-v",
]
valued = [
"--color", "--db", "--file", "--ignore",
"--target-arch", "--target-os", "-f",
]
[[command.sub]]
name = "bench"
level = "SafeRead"
standalone = [
"--all-features", "--all-targets", "--benches", "--bins", "--doc",
"--examples", "--frozen", "--future-incompat-report", "--help", "--ignore-rust-version",
"--keep-going", "--lib", "--locked", "--no-default-features", "--no-fail-fast",
"--no-run", "--offline", "--release", "--tests", "--timings", "--unit-graph",
"-h", "--quiet", "-q", "-v",
]
valued = [
"--bench", "--bin", "--color", "--config", "--example",
"--features", "--jobs", "--manifest-path", "--message-format",
"--package", "--profile", "--target", "--target-dir", "--test",
"-Z", "-j", "-p",
]
[[command.sub]]
name = "build"
level = "SafeWrite"
standalone = [
"--all-features", "--all-targets", "--benches", "--bins", "--build-plan",
"--examples", "--frozen", "--future-incompat-report", "--help", "--ignore-rust-version",
"--keep-going", "--lib", "--locked", "--no-default-features", "--offline",
"--release", "--tests", "--timings", "--unit-graph",
"-h", "--quiet", "-q", "-v",
]
valued = [
"--bench", "--bin", "--color", "--config", "--example",
"--features", "--jobs", "--manifest-path", "--message-format",
"--package", "--profile", "--target", "--target-dir", "--test",
"-Z", "-j", "-p",
]
[[command.sub]]
name = "check"
level = "SafeRead"
standalone = [
"--all-features", "--all-targets", "--benches", "--bins", "--examples",
"--frozen", "--future-incompat-report", "--help", "--ignore-rust-version",
"--keep-going", "--lib", "--locked", "--no-default-features", "--offline",
"--release", "--tests", "--timings", "--unit-graph",
"-h", "--quiet", "-q", "-v",
]
valued = [
"--bench", "--bin", "--color", "--config", "--example",
"--features", "--jobs", "--manifest-path", "--message-format",
"--package", "--profile", "--target", "--target-dir", "--test",
"-Z", "-j", "-p",
]
[[command.sub]]
name = "clippy"
level = "SafeRead"
standalone = [
"--all-features", "--all-targets", "--benches", "--bins", "--examples",
"--frozen", "--future-incompat-report", "--help", "--ignore-rust-version",
"--keep-going", "--lib", "--locked", "--no-default-features", "--no-deps",
"--offline", "--release", "--tests", "--timings", "--unit-graph",
"-h", "--quiet", "-q", "-v",
]
valued = [
"--bench", "--bin", "--color", "--config", "--example",
"--features", "--jobs", "--manifest-path", "--message-format",
"--package", "--profile", "--target", "--target-dir", "--test",
"-Z", "-j", "-p",
]
[[command.sub]]
name = "deny"
level = "Inert"
bare = false
standalone = [
"--all-features", "--help", "--no-default-features",
"-h", "--quiet", "-q", "-v",
]
valued = [
"--color", "--config", "--exclude", "--features",
"--format", "--manifest-path", "--target", "--workspace",
]
[[command.sub]]
name = "doc"
level = "SafeWrite"
standalone = [
"--all-features", "--bins", "--document-private-items", "--examples",
"--frozen", "--future-incompat-report", "--help", "--ignore-rust-version",
"--keep-going", "--locked", "--no-default-features", "--no-deps",
"--offline", "--open", "--release", "--timings", "--unit-graph",
"-h", "--quiet", "-q", "-v",
]
valued = [
"--bin", "--color", "--config", "--example",
"--features", "--jobs", "--manifest-path", "--message-format",
"--package", "--profile", "--target", "--target-dir",
"-Z", "-j", "-p",
]
[[command.sub]]
name = "fmt"
guard = "--check"
level = "Inert"
bare = false
standalone = ["--all", "--check", "--help", "-h", "--quiet", "-q", "-v"]
valued = ["--manifest-path", "--message-format", "--package", "-p"]
[[command.sub]]
name = "help"
level = "Inert"
max_positional = 1
positional_style = true
[[command.sub]]
name = "info"
level = "Inert"
bare = false
standalone = ["--frozen", "--help", "--locked", "--offline", "-h", "--quiet", "-q", "-v"]
valued = ["--color", "--config", "--index", "--registry"]
[[command.sub]]
name = "install"
level = "SafeWrite"
bare = false
max_positional = 0
standalone = [
"--all-features", "--bins", "--debug",
"--force", "--frozen", "--help",
"--ignore-rust-version", "--keep-going",
"--locked", "--no-default-features", "--no-track",
"--offline", "--quiet", "--timings", "--verbose",
"-f", "-h", "-q", "-v",
]
valued = [
"--bin", "--color", "--config", "--example",
"--features", "--jobs", "--message-format",
"--path", "--profile", "--root",
"--target", "--target-dir",
"-F", "-Z", "-j",
]
[[command.sub]]
name = "license"
level = "Inert"
standalone = ["--frozen", "--help", "--locked", "--offline", "-h", "--quiet", "-q", "-v"]
valued = ["--color", "--config", "--manifest-path"]
[[command.sub]]
name = "locate-project"
level = "Inert"
standalone = ["--frozen", "--help", "--locked", "--offline", "-h", "--quiet", "-q", "-v"]
valued = ["--color", "--config", "--manifest-path"]
[[command.sub]]
name = "metadata"
level = "Inert"
standalone = [
"--all-features", "--frozen", "--help", "--locked",
"--no-default-features", "--no-deps", "--offline",
"-h", "--quiet", "-q", "-v",
]
valued = [
"--color", "--config", "--features", "--filter-platform",
"--format-version", "--manifest-path",
]
[[command.sub]]
name = "package"
guard = "--list"
guard_short = "-l"
level = "Inert"
bare = false
standalone = [
"--all-features", "--allow-dirty", "--exclude-lockfile",
"--frozen", "--help", "--keep-going",
"--list", "--locked", "--no-default-features",
"--no-metadata", "--no-verify", "--offline", "--workspace",
"-h", "-l", "--quiet", "-q", "-v",
]
valued = [
"--color", "--config", "--exclude", "--features",
"--index", "--jobs", "--lockfile-path",
"--manifest-path", "--message-format",
"--package", "--registry", "--target", "--target-dir",
"-F", "-Z", "-j", "-p",
]
[[command.sub]]
name = "pkgid"
level = "Inert"
standalone = ["--frozen", "--help", "--locked", "--offline", "-h", "--quiet", "-q", "-v"]
valued = ["--color", "--config", "--manifest-path"]
[[command.sub]]
name = "publish"
guard = "--dry-run"
guard_short = "-n"
level = "SafeRead"
bare = false
standalone = [
"--all-features", "--allow-dirty", "--dry-run",
"--frozen", "--help", "--keep-going",
"--locked", "--no-default-features", "--no-verify",
"--offline", "--workspace",
"-h", "-n", "--quiet", "-q", "-v",
]
valued = [
"--color", "--config", "--exclude", "--features",
"--index", "--jobs", "--lockfile-path", "--manifest-path",
"--package", "--registry", "--target", "--target-dir",
"-F", "-Z", "-j", "-p",
]
[[command.sub]]
name = "read-manifest"
level = "Inert"
standalone = ["--frozen", "--help", "--locked", "--offline", "-h", "--quiet", "-q", "-v"]
valued = ["--color", "--config", "--manifest-path"]
[[command.sub]]
name = "run"
level = "Inert"
bare = false
max_positional = 0
standalone = ["--help", "-h"]
[[command.sub]]
name = "search"
level = "Inert"
bare = false
standalone = ["--frozen", "--help", "--locked", "--offline", "-h", "--quiet", "-q", "-v"]
valued = ["--color", "--config", "--index", "--limit", "--registry"]
[[command.sub]]
name = "test"
level = "SafeRead"
standalone = [
"--all-features", "--all-targets", "--benches", "--bins", "--doc",
"--examples", "--frozen", "--future-incompat-report", "--help", "--ignore-rust-version",
"--keep-going", "--lib", "--locked", "--no-default-features", "--no-fail-fast",
"--no-run", "--offline", "--release", "--tests", "--timings", "--unit-graph",
"-h", "--quiet", "-q", "-v",
]
valued = [
"--bench", "--bin", "--color", "--config", "--example",
"--features", "--jobs", "--manifest-path", "--message-format",
"--package", "--profile", "--target", "--target-dir", "--test",
"-Z", "-j", "-p",
]
[[command.sub]]
name = "tree"
level = "Inert"
standalone = [
"--all-features", "--duplicates", "--frozen", "--help", "--ignore-rust-version",
"--locked", "--no-dedupe", "--no-default-features", "--offline",
"-d", "-e", "-h", "-i", "--quiet", "-q", "-v",
]
valued = [
"--charset", "--color", "--config", "--depth", "--edges",
"--features", "--format", "--invert", "--manifest-path",
"--package", "--prefix", "--prune", "--target",
"-p",
]
[[command.sub]]
name = "verify-project"
level = "Inert"
standalone = ["--frozen", "--help", "--locked", "--offline", "-h", "--quiet", "-q", "-v"]
valued = ["--color", "--config", "--manifest-path"]
[[command.sub]]
name = "nextest"
[[command.sub.sub]]
name = "run"
level = "SafeRead"
standalone = [
"--all-features", "--all-targets", "--help", "--lib",
"--locked", "--no-capture", "--no-default-features",
"--no-fail-fast", "--release", "--status-level",
"-h",
]
valued = [
"--bin", "--cargo-profile", "--color", "--config",
"--exclude", "--features", "--jobs", "--manifest-path",
"--package", "--partition", "--profile", "--retries",
"--target", "--target-dir", "--test", "--test-threads",
"--threads",
"-E", "-j", "-p",
]
[[command.sub.sub]]
name = "list"
standalone = [
"--all-features", "--help", "--lib", "--locked",
"--no-default-features", "--release",
"-T", "-h",
]
valued = [
"--bin", "--color", "--config", "--exclude",
"--features", "--manifest-path", "--message-format",
"--package", "--partition", "--profile",
"--target", "--target-dir", "--test",
"-E", "-p",
]
[[command.sub.sub]]
name = "show-config"
standalone = ["--help", "-h"]
[[command.sub.sub]]
name = "archive"
level = "SafeWrite"
standalone = ["--all-features", "--help", "--locked", "--no-default-features", "--release", "-h"]
valued = ["--archive-file", "--archive-format", "--cargo-profile", "--features", "--manifest-path", "--package", "--target", "--target-dir", "-p"]
[[command.sub]]
name = "outdated"
standalone = [
"--aggressive", "--color", "--depth", "--exit-code",
"--features", "--help", "--manifest-path", "--packages",
"--root-deps-only", "--verbose", "--workspace",
"-R", "-V", "-d", "-h", "-n", "--quiet", "-q", "-r", "-v", "-w",
]
valued = [
"--color", "--depth", "--exclude", "--features",
"--ignore", "--manifest-path", "--packages",
"-d", "-e", "-i", "-p",
]
[[command.sub]]
name = "machete"
standalone = [
"--help", "--skip-target-dir", "--with-metadata",
"-V", "-h",
]
[[command.sub]]
name = "semver-checks"
[[command.sub.sub]]
name = "check-release"
standalone = [
"--all-features", "--default-features", "--help",
"--verbose",
"-h", "-v",
]
valued = [
"--baseline-rev", "--baseline-root", "--baseline-version",
"--color", "--config-path", "--current-rustdoc",
"--exclude", "--features", "--manifest-path",
"--package", "--release-type", "--target",
"-j", "-p",
]
[[command.sub]]
name = "expand"
level = "SafeWrite"
standalone = [
"--all-features", "--help", "--lib", "--no-default-features",
"--release", "--tests", "--ugly",
"-h",
]
valued = [
"--bin", "--color", "--example", "--features",
"--manifest-path", "--package", "--target", "--theme",
"-p",
]
[[command.sub]]
name = "llvm-cov"
level = "SafeRead"
standalone = [
"--all-features", "--all-targets", "--help", "--html", "--json",
"--lcov", "--lib", "--locked", "--no-cfg-coverage",
"--no-default-features", "--no-fail-fast", "--no-run",
"--open", "--release", "--text",
"-h",
]
valued = [
"--bin", "--branch", "--codecov", "--cobertura",
"--color", "--config", "--example", "--exclude",
"--features", "--ignore-filename-regex", "--ignore-run-fail",
"--jobs", "--manifest-path", "--output-dir", "--output-path",
"--package", "--profile", "--target", "--target-dir", "--test",
"-j", "-p",
]
[[command.sub]]
name = "update"
guard = "--dry-run"
level = "Inert"
bare = false
standalone = [
"--aggressive", "--dry-run", "--frozen", "--help",
"--locked", "--offline", "--recursive", "--workspace",
"-h", "--quiet", "-q", "-v",
]
valued = [
"--color", "--config", "--manifest-path", "--package",
"--precise",
"-p",
]
[[command.sub]]
name = "generate-lockfile"
level = "SafeWrite"
standalone = [
"--frozen", "--help", "--locked", "--offline",
"-h", "--quiet", "-q", "-v",
]
valued = ["--color", "--config", "--manifest-path"]
[[command.sub]]
name = "version"
standalone = ["--help", "-h"]
positional_style = true
[[command.sub]]
name = "bloat"
level = "SafeWrite"
standalone = [
"--crates", "--filter", "--help", "--lib",
"--no-default-features", "--release", "--time",
"--wide",
"-h",
]
valued = [
"--bin", "--example", "--features", "--jobs",
"--manifest-path", "--message-format", "--package",
"--target",
"-j", "-n", "-p",
]
[[command.sub]]
name = "clean"
level = "SafeWrite"
standalone = [
"--doc", "--dry-run", "--frozen", "--help", "--locked",
"--offline", "--release", "--workspace",
"-h", "-n", "--quiet", "-q", "-r", "-v",
]
valued = [
"--color", "--config", "--lockfile-path", "--manifest-path",
"--package", "--profile", "--target", "--target-dir",
"-Z", "-p",
]
[[command.sub]]
name = "fetch"
level = "SafeWrite"
standalone = [
"--frozen", "--help", "--locked", "--offline",
"-h", "--quiet", "-q", "-v",
]
valued = [
"--color", "--config", "--lockfile-path",
"--manifest-path", "--target",
"-Z",
]
[[command.sub]]
name = "vendor"
level = "SafeWrite"
max_positional = 1
standalone = [
"--frozen", "--help", "--locked", "--no-delete",
"--offline", "--respect-source-config", "--versioned-dirs",
"-h", "--quiet", "-q", "-v",
]
valued = [
"--color", "--config", "--lockfile-path",
"--manifest-path", "--sync",
"-Z", "-s",
]
[[command.sub]]
name = "config"
[[command.sub.sub]]
name = "get"
level = "Inert"
max_positional = 1
standalone = [
"--frozen", "--help", "--locked", "--offline",
"--show-origin",
"-h", "--quiet", "-q", "-v",
]
valued = [
"--color", "--config", "--format", "--merged",
"-Z",
]
[[command.sub]]
name = "report"
[[command.sub.sub]]
name = "future-incompatibilities"
level = "Inert"
standalone = [
"--frozen", "--help", "--locked", "--offline",
"-h", "--quiet", "-q", "-v",
]
valued = [
"--color", "--config", "--id", "--package",
"-Z", "-p",
]
[[command.sub]]
name = "udeps"
level = "SafeRead"
standalone = [
"--all", "--all-features", "--all-targets", "--benches",
"--bins", "--examples", "--frozen", "--help", "--keep-going",
"--lib", "--locked", "--no-default-features", "--offline",
"--release", "--tests", "--workspace", "--version",
"-V", "-h", "--quiet", "-q", "-v",
]
valued = [
"--backend", "--bench", "--bin", "--color", "--example",
"--exclude", "--features", "--jobs", "--manifest-path",
"--message-format", "--output", "--package", "--profile",
"--target", "--target-dir", "--test",
"-j", "-p",
]
[[command.sub]]
name = "msrv"
standalone = [
"--help", "--no-log", "--no-user-output", "--version",
"-V", "-h",
]
valued = [
"--log-level", "--log-target", "--manifest-path",
"--output-format", "--path",
]
[[command.sub.sub]]
name = "find"
level = "SafeRead"
max_positional = 0
standalone = [
"--all-features", "--bisect", "--help",
"--ignore-lockfile", "--include-all-patch-releases",
"--linear", "--no-check-feedback",
"--no-default-features", "--no-log", "--no-user-output",
"-h",
]
valued = [
"--component", "--features", "--log-level", "--log-target",
"--manifest-path", "--max", "--maximum", "--min", "--minimum",
"--output-format", "--path", "--release-source", "--target",
]
[[command.sub.sub]]
name = "verify"
level = "SafeRead"
max_positional = 0
standalone = [
"--all-features", "--help",
"--ignore-lockfile", "--include-all-patch-releases",
"--no-check-feedback", "--no-default-features",
"--no-log", "--no-user-output",
"-h",
]
valued = [
"--component", "--features", "--log-level", "--log-target",
"--manifest-path", "--max", "--maximum", "--min", "--minimum",
"--output-format", "--path", "--release-source",
"--rust-version", "--target",
]
[[command.sub.sub]]
name = "list"
level = "Inert"
standalone = [
"--help", "--no-log", "--no-user-output",
"-h",
]
valued = [
"--log-level", "--log-target", "--manifest-path",
"--output-format", "--path", "--variant",
]
[[command.sub.sub]]
name = "show"
level = "Inert"
standalone = [
"--help", "--no-log", "--no-user-output",
"-h",
]
valued = [
"--log-level", "--log-target", "--manifest-path",
"--output-format", "--path",
]
[[command.sub]]
name = "public-api"
level = "SafeRead"
standalone = [
"--all-features", "--help", "--no-default-features",
"--simplified", "--version",
"-V", "-h", "-s",
]
valued = [
"--color", "--features", "--manifest-path", "--omit",
"--package", "--target",
"-F", "-p",
]
[[command.sub]]
name = "about"
standalone = [
"--help", "--version",
"-V", "-h",
]
valued = ["--color", "-L"]
[[command.sub.sub]]
name = "generate"
level = "SafeRead"
max_positional = 1
standalone = [
"--all-features", "--fail", "--frozen", "--help",
"--locked", "--no-default-features", "--offline",
"--workspace",
"-V", "-h",
]
valued = [
"--color", "--config", "--features", "--format",
"--manifest-path", "--name", "--target", "--threshold",
"-L", "-c", "-m", "-n",
]
[[command.sub]]
name = "vet"
standalone = [
"--frozen", "--help", "--locked",
"--no-all-features", "--no-default-features",
"--no-minimize-exemptions", "--no-registry-suggestions",
"--version",
"-V", "-h",
]
valued = [
"--cache-dir", "--cargo-arg", "--features",
"--filter-graph", "--manifest-path",
"--output-format", "--store-path", "--verbose",
]
[[command.sub.sub]]
name = "check"
level = "SafeRead"
standalone = ["--help", "-h"]
[[command.sub.sub]]
name = "suggest"
level = "SafeRead"
standalone = ["--help", "-h"]
[[command.sub.sub]]
name = "dump-graph"
level = "Inert"
standalone = ["--help", "-h"]
valued = ["--depth"]
[[command.sub.sub]]
name = "explain-audit"
level = "Inert"
max_positional = 3
standalone = ["--help", "-h"]
valued = ["--criteria"]
[[command.sub]]
name = "geiger"
level = "SafeRead"
standalone = [
"--all", "--all-dependencies", "--all-features",
"--all-targets", "--build-dependencies",
"--dev-dependencies", "--forbid-only", "--frozen",
"--help", "--include-tests", "--invert", "--locked",
"--no-default-features", "--no-indent", "--offline",
"--prefix-depth", "--quiet", "--verbose", "--version",
"-V", "-a", "-f", "-h", "-i", "-q", "-v",
]
valued = [
"--color", "--features", "--format", "--manifest-path",
"--output-format", "--package", "--section-name", "--target",
"-Z", "-p",
]
[[command.sub]]
name = "criterion"
level = "SafeRead"
standalone = [
"--all", "--all-features", "--all-targets", "--benches",
"--bins", "--debug", "--examples", "--frozen", "--help",
"--lib", "--locked", "--no-default-features",
"--no-fail-fast", "--no-run", "--offline", "--tests",
"--verbose", "--version", "--workspace",
"-V", "-h", "-v",
]
valued = [
"--bench", "--bin", "--color", "--criterion-manifest-path",
"--example", "--exclude", "--features", "--history-description",
"--history-id", "--jobs", "--manifest-path", "--message-format",
"--output-format", "--package", "--plotting-backend",
"--target", "--target-dir", "--test",
"-Z", "-j", "-p",
]
[[command.sub]]
name = "cyclonedx"
level = "SafeWrite"
standalone = [
"--all", "--all-features", "--help",
"--license-strict", "--no-default-features", "--quiet",
"--target-in-filename", "--top-level", "--verbose",
"--version",
"-V", "-a", "-h", "-q", "-v",
]
valued = [
"--describe", "--features", "--format",
"--license-accept-named", "--manifest-path",
"--override-filename", "--spec-version", "--target",
"-F", "-f",
]