1CARGO-VERIFY-PROJECT(1) CARGO-VERIFY-PROJECT(1)
2
3
4
6 cargo-verify-project - Check correctness of crate manifest
7
9 cargo verify-project [OPTIONS]
10
12 This command will parse the local manifest and check its validity. It
13 emits a JSON object with the result. A successful validation will
14 display:
15
16 {"success":"true"}
17
18 An invalid workspace will display:
19
20 {"invalid":"human-readable error message"}
21
23 Display Options
24 -v, --verbose
25 Use verbose output. May be specified twice for "very verbose"
26 output which includes extra output such as dependency warnings and
27 build script output. May also be specified with the term.verbose
28 config value
29 <https://doc.rust-lang.org/cargo/reference/config.html>.
30
31 -q, --quiet
32 No output printed to stdout.
33
34 --color WHEN
35 Control when colored output is used. Valid values:
36
37 · auto (default): Automatically detect if color support is
38 available on the terminal.
39
40 · always: Always display colors.
41
42 · never: Never display colors.
43
44 May also be specified with the term.color config value
45 <https://doc.rust-lang.org/cargo/reference/config.html>.
46
47 Manifest Options
48 --manifest-path PATH
49 Path to the Cargo.toml file. By default, Cargo searches in the
50 current directory or any parent directory for the Cargo.toml file.
51
52 --frozen, --locked
53 Either of these flags requires that the Cargo.lock file is
54 up-to-date. If the lock file is missing, or it needs to be updated,
55 Cargo will exit with an error. The --frozen flag also prevents
56 Cargo from attempting to access the network to determine if it is
57 out-of-date.
58
59 These may be used in environments where you want to assert that the
60 Cargo.lock file is up-to-date (such as a CI build) or want to avoid
61 network access.
62
63 --offline
64 Prevents Cargo from accessing the network for any reason. Without
65 this flag, Cargo will stop with an error if it needs to access the
66 network and the network is not available. With this flag, Cargo
67 will attempt to proceed without the network if possible.
68
69 Beware that this may result in different dependency resolution than
70 online mode. Cargo will restrict itself to crates that are
71 downloaded locally, even if there might be a newer version as
72 indicated in the local copy of the index. See the cargo-fetch(1)
73 command to download dependencies before going offline.
74
75 May also be specified with the net.offline config value
76 <https://doc.rust-lang.org/cargo/reference/config.html>.
77
78 Common Options
79 -h, --help
80 Prints help information.
81
82 -Z FLAG...
83 Unstable (nightly-only) flags to Cargo. Run cargo -Z help for
84 details.
85
87 See the reference
88 <https://doc.rust-lang.org/cargo/reference/environment-variables.html>
89 for details on environment variables that Cargo reads.
90
92 0
93 The workspace is OK.
94
95 1
96 The workspace is invalid.
97
99 1. Check the current workspace for errors:
100
101 cargo verify-project
102
104 cargo(1), cargo-package(1)
105
106
107
108 2019-06-07 CARGO-VERIFY-PROJECT(1)