CARGO-VERIFY-PROJECT(1)
β¨ NAME β¨
cargo-verify-project</b> β it's the vibe check for your crate manifest, bestie π
(and yes, this is from the General Commands Manual β the cargo-verify-project(1) page, if we're being formal π)
π¦ SYNOPSIS π¦
cargo verify-project [options]
πΈ DESCRIPTION πΈ
okay so listen. this command reads your local manifest and checks whether it's actually valid, and then it tells you the tea in the form of a JSON object β¨
if your validation slays, you get this:
{"success":"true"}
and if your workspace is invalid, you get this instead:
{"invalid":"human-readable error message"}
no cap, that's the whole vibe β one little JSON blob, zero drama π
π OPTIONS π
π Display Options π
-v,--verboseβ use verbose output. and get this, you can specify it twice for "very verbose" output, which also throws in extra stuff like dependency warnings and build script output. you can also set this with theterm.verboseconfig value at <https://doc.rust-lang.org/cargo/reference/config.html> π-q,--quietβ do NOT print cargo log messages. like, silence, please π«Ά may also be specified with theterm.quietconfig value at <https://doc.rust-lang.org/cargo/reference/config.html>.--color whenβ controls when colored output gets used. valid values are:auto(the default): automatically detect if color support is available on the terminal.always: always display colors. always. every time. πnever: never display colors. boring but valid π
may also be specified with the term.color config value at <https://doc.rust-lang.org/cargo/reference/config.html>.
π Manifest Options π
--manifest-path pathβ path to theCargo.tomlfile. by default, Cargo goes looking for theCargo.tomlfile in the current directory or any parent directory, like it's hunting for its keys π--lockedβ asserts that the exact same dependencies and versions are used as when the existingCargo.lockfile was originally generated. Cargo will exit with an error when either of these scenarios arises:- the lock file is missing.
- Cargo attempted to change the lock file due to a different dependency resolution.
it's giving "deterministic builds only", so it's great for environments where you want that, like CI pipelines β¨
--offlineβ prevents Cargo from accessing the network for any reason. without this flag, Cargo will stop with an error if it needs the network and the network isn't 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.
may also be specified with the net.offline config value at <https://doc.rust-lang.org/cargo/reference/config.html>.
--frozenβ equivalent to specifying both--lockedand--offlineat the same time. two-for-one, iconic π
π 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 at <https://rust-lang.github.io/rustup/overrides.html> for more information about how toolchain overrides work.--config KEY=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 at <https://doc.rust-lang.org/cargo/reference/config.html#command-line-overrides> for more information.-C PATHβ 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.
heads up: this option is only available on the nightly channel at <https://doc.rust-lang.org/book/appendix-07-nightly-rust.html> and requires the -Z unstable-options flag to enable (see #10098 at <https://github.com/rust-lang/cargo/issues/10098>). so, nightly girlies only π§
-h,--helpβ prints help information. the classic π«Ά-Z flagβ unstable (nightly-only) flags to Cargo. runcargo -Z helpfor details.
π ENVIRONMENT π
see the reference at <https://doc.rust-lang.org/cargo/reference/environment-variables.html> for details on environment variables that Cargo reads π
β EXIT STATUS β
0: the workspace is OK. slay π1: the workspace is invalid. not slay π
π₯ EXAMPLES π₯
- check the current workspace for errors:
cargo verify-project
π SEE ALSO π
and that's the whole page, bestie β it signs off as CARGO-VERIFY-PROJECT(1), which is also how it walked in the door at the top. go forth and verify, you main character πβ¨π¦
π¦ where this page comes from
- ubuntu jammy: cargo-1.81 1.81.0+dfsg0ubuntu0-0ubuntu0.22.04.1 Β· Apache-2.0 WITH LLVM exception
- ubuntu noble: cargo-1.81 1.81.0+dfsg0ubuntu1-0ubuntu0.24.04.1 Β· 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