cargo-verify-project
Check correctness of a Cargo.toml manifest
TLDR
Verify current project manifest
SYNOPSIS
cargo verify-project [options]
DESCRIPTION
cargo verify-project parses and validates the local Cargo.toml manifest file. It outputs a JSON object indicating whether the manifest is syntactically correct and contains all required fields, along with error details on failure.
This command is useful in CI/CD pipelines and pre-commit hooks for catching manifest errors early. It checks syntax correctness, valid dependency specifications, proper metadata formatting, and required fields. It does not verify that dependencies actually exist on a registry, only that the manifest itself is well-formed. The exit status is 0 for valid manifests and 1 for invalid ones.
PARAMETERS
--manifest-path path
Path to Cargo.toml--locked
Assert Cargo.lock is up-to-date--frozen
Assert Cargo.lock is up-to-date and no network--offline
Don't access network-v, --verbose
Verbose output-q, --quiet
Suppress output
OUTPUT
Success
EXIT STATUS
0
Manifest is valid1
Manifest is invalid
VALIDATION
Checks:
- Syntax correctness
- Valid dependency specifications
- Proper metadata formatting
- Required fields present
CAVEATS
Useful for CI/CD pipelines and pre-commit hooks. Does not verify dependencies exist, only manifest syntax.
SEE ALSO
cargo(1), cargo-check(1)
