CARGO-VERIFY-PROJECT(1)
π CARGO-VERIFY-PROJECT π
okay bestie, welcome to cargo-verify-project from the General Commands Manual β it's a whole lil vibe and honestly it's giving "glow-up check for your manifest". let's get into it π«Ά
β¨ NAME β¨
cargo-verify-project β check the correctness of a crate manifest π
πΈ SYNOPSIS πΈ
cargo verify-project [options]
π¦ DESCRIPTION π¦
so the way this works is: this command parses your local manifest and does a validity check on it. and then β plot twist β it spits out a JSON object with the result. it's not a "yay you did it" text, it's literally JSON. periodt.
if your validation slays, you get:
{"success":"true"}
and if your workspace is invalid, you get:
{"invalid":"human-readable error message"}
like, it'll tell you what's wrong in human-readable form, so you're not just staring at a mystery. π
π OPTIONS π
π Display Options
-v,--verboseβ use verbose output. you can specify it twice for "very verbose" output, which includes extra stuff like dependency warnings and build script output. also settable with theterm.verboseconfig value (https://doc.rust-lang.org/cargo/reference/config.html). it's giving "tell me everything" energy π₯-q,--quietβ do not print cargo log messages. also settable with theterm.quietconfig value (https://doc.rust-lang.org/cargo/reference/config.html). this is the "shhh, main character moment" flag π€«--colorwhen β controls when colored output gets used. valid values:auto(default): automatically detect if color support is available on the terminal. iykyk πalways: always display colors. no thoughts, just vibes πnever: never display colors. monochrome era π€- also settable with the
term.colorconfig value (https://doc.rust-lang.org/cargo/reference/config.html)
πΈ Manifest Options
--manifest-pathpath β path to theCargo.tomlfile. by default, Cargo searches for theCargo.tomlfile in the current directory or any parent directory. it will literally go looking for it like a bestie hunting you down in a crowd π«Ά--frozen,--lockedβ either of these flags requires that theCargo.lockfile is up-to-date. if the lock file is missing, or it needs to be updated, Cargo will exit with an error. the--frozenflag also prevents Cargo from attempting to access the network to determine if it's out-of-date.
these may be used in environments where you want to assert that the Cargo.lock file is up-to-date (such as a CI build) or want to avoid network access. so like, "no cap, my lockfile is correct" energy β¨
--offlineβ prevents Cargo from accessing the network for any reason. without this flag, Cargo will stop with an error if it needs to access the network and the network is not available. with this flag, Cargo will attempt to proceed without the network if possible.
beware bestie π this may result in different dependency resolution than online mode. Cargo will restrict itself to crates that are downloaded locally, even if there might be a newer version as indicated in the local copy of the index. see the cargo-fetch(1) command to download dependencies before going offline.
also settable with the net.offline config value (https://doc.rust-lang.org/cargo/reference/config.html)
π Common Options
+toolchainβ if Cargo has been installed with rustup, and the first argument to cargo begins with+, it will be interpreted as a rustup toolchain name (such as+stableor+nightly). see the rustup documentation (https://rust-lang.github.io/rustup/overrides.html) for more info about how toolchain overrides work. choosing your toolchain is so main character energy π--configKEY=VALUE or PATH β overrides a Cargo configuration value. the argument should be in TOML syntax ofKEY=VALUE, or provided as a path to an extra configuration file. this flag may be specified multiple times. see the command-line overrides section (https://doc.rust-lang.org/cargo/reference/config.html#command-line-overrides) for more information.-CPATH β changes the current working directory before executing any specified operations. this affects things like where cargo looks by default for the project manifest (Cargo.toml), as well as the directories searched for discovering.cargo/config.toml, for example. this option must appear before the command name, for examplecargo -C path/to/my-project build.
this option is only available on the nightly channel (https://doc.rust-lang.org/book/appendix-07-nightly-rust.html) and requires the -Z unstable-options flag to enable (see #10098 https://github.com/rust-lang/cargo/issues/10098). nightly-only, bestie, don't try this on stable π
-h,--helpβ prints help information. the classic π-Zflag β unstable (nightly-only) flags to Cargo. runcargo -Z helpfor details. unstable = experimental vibes, handle with care π
π ENVIRONMENT π
see the reference (https://doc.rust-lang.org/cargo/reference/environment-variables.html) for details on environment variables that Cargo reads. it's all in there, fr fr π
β EXIT STATUS β
0: the workspace is OK. we love a healthy workspace β¨1: the workspace is invalid. not the vibe, but at least you know π
π EXAMPLES π
- check the current workspace for errors:
cargo verify-project
π SEE ALSO π
and that's the whole thing, bestie π§ this was cargo-verify-project(1) β the footer just says CARGO-VERIFY-PROJECT(1) right back at you, from the General Commands Manual. go verify that manifest, you got this πβ¨π
π¦ where this page comes from
- opensuse-leap 16.0: cargo1.78 1.78.0-160000.2.2 Β· Apache-2.0 OR MIT
- opensuse-leap 16.0: cargo1.78 1.78.0-160000.2.2 Β· Apache-2.0 OR MIT
- opensuse-leap 16.0: cargo1.78 1.78.0-160000.2.2 Β· Apache-2.0 OR MIT
- opensuse-leap 16.0: cargo1.78 1.78.0-160000.2.2 Β· Apache-2.0 OR MIT
- ubuntu jammy: cargo 1.75.0+dfsg0ubuntu1~bpo0-0ubuntu0.22.04.1 Β· Apache-2.0 WITH LLVM exception
- ubuntu noble: cargo 1.75.0+dfsg0ubuntu1-0ubuntu7 Β· MIT OR Apache-2.0
- ubuntu noble: cargo 1.75.0+dfsg0ubuntu1-0ubuntu7.4 Β· MIT OR Apache-2.0
- ubuntu noble: cargo-1.74 1.74.1+dfsg0ubuntu1-0ubuntu13 Β· MIT OR Apache-2.0
- ubuntu noble: cargo-1.74 1.74.1+dfsg0ubuntu1-0ubuntu15 Β· MIT OR Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms