Jeff Vander Stoep | 956d143 | 2020-09-18 13:46:24 +0200 | [diff] [blame] | 1 | '\" t |
| 2 | .\" Title: cargo-verify-project |
| 3 | .\" Author: [see the "AUTHOR(S)" section] |
| 4 | .\" Generator: Asciidoctor 2.0.10 |
| 5 | .\" Date: 2019-09-05 |
| 6 | .\" Manual: \ \& |
| 7 | .\" Source: \ \& |
| 8 | .\" Language: English |
| 9 | .\" |
| 10 | .TH "CARGO\-VERIFY\-PROJECT" "1" "2019-09-05" "\ \&" "\ \&" |
| 11 | .ie \n(.g .ds Aq \(aq |
| 12 | .el .ds Aq ' |
| 13 | .ss \n[.ss] 0 |
| 14 | .nh |
| 15 | .ad l |
| 16 | .de URL |
| 17 | \fI\\$2\fP <\\$1>\\$3 |
| 18 | .. |
| 19 | .als MTO URL |
| 20 | .if \n[.g] \{\ |
| 21 | . mso www.tmac |
| 22 | . am URL |
| 23 | . ad l |
| 24 | . . |
| 25 | . am MTO |
| 26 | . ad l |
| 27 | . . |
| 28 | . LINKSTYLE blue R < > |
| 29 | .\} |
| 30 | .SH "NAME" |
| 31 | cargo\-verify\-project \- Check correctness of crate manifest |
| 32 | .SH "SYNOPSIS" |
| 33 | .sp |
| 34 | \fBcargo verify\-project [\fIOPTIONS\fP]\fP |
| 35 | .SH "DESCRIPTION" |
| 36 | .sp |
| 37 | This command will parse the local manifest and check its validity. It emits a |
| 38 | JSON object with the result. A successful validation will display: |
| 39 | .sp |
| 40 | .if n .RS 4 |
| 41 | .nf |
| 42 | {"success":"true"} |
| 43 | .fi |
| 44 | .if n .RE |
| 45 | .sp |
| 46 | An invalid workspace will display: |
| 47 | .sp |
| 48 | .if n .RS 4 |
| 49 | .nf |
| 50 | {"invalid":"human\-readable error message"} |
| 51 | .fi |
| 52 | .if n .RE |
| 53 | .SH "OPTIONS" |
| 54 | .SS "Display Options" |
| 55 | .sp |
| 56 | \fB\-v\fP, \fB\-\-verbose\fP |
| 57 | .RS 4 |
| 58 | Use verbose output. May be specified twice for "very verbose" output which |
| 59 | includes extra output such as dependency warnings and build script output. |
| 60 | May also be specified with the \fBterm.verbose\fP |
| 61 | .URL "https://doc.rust\-lang.org/cargo/reference/config.html" "config value" "." |
| 62 | .RE |
| 63 | .sp |
| 64 | \fB\-q\fP, \fB\-\-quiet\fP |
| 65 | .RS 4 |
| 66 | No output printed to stdout. |
| 67 | .RE |
| 68 | .sp |
| 69 | \fB\-\-color\fP \fIWHEN\fP |
| 70 | .RS 4 |
| 71 | Control when colored output is used. Valid values: |
| 72 | .sp |
| 73 | .RS 4 |
| 74 | .ie n \{\ |
| 75 | \h'-04'\(bu\h'+03'\c |
| 76 | .\} |
| 77 | .el \{\ |
| 78 | . sp -1 |
| 79 | . IP \(bu 2.3 |
| 80 | .\} |
| 81 | \fBauto\fP (default): Automatically detect if color support is available on the |
| 82 | terminal. |
| 83 | .RE |
| 84 | .sp |
| 85 | .RS 4 |
| 86 | .ie n \{\ |
| 87 | \h'-04'\(bu\h'+03'\c |
| 88 | .\} |
| 89 | .el \{\ |
| 90 | . sp -1 |
| 91 | . IP \(bu 2.3 |
| 92 | .\} |
| 93 | \fBalways\fP: Always display colors. |
| 94 | .RE |
| 95 | .sp |
| 96 | .RS 4 |
| 97 | .ie n \{\ |
| 98 | \h'-04'\(bu\h'+03'\c |
| 99 | .\} |
| 100 | .el \{\ |
| 101 | . sp -1 |
| 102 | . IP \(bu 2.3 |
| 103 | .\} |
| 104 | \fBnever\fP: Never display colors. |
| 105 | .RE |
| 106 | .sp |
| 107 | May also be specified with the \fBterm.color\fP |
| 108 | .URL "https://doc.rust\-lang.org/cargo/reference/config.html" "config value" "." |
| 109 | .RE |
| 110 | .SS "Manifest Options" |
| 111 | .sp |
| 112 | \fB\-\-manifest\-path\fP \fIPATH\fP |
| 113 | .RS 4 |
| 114 | Path to the \fBCargo.toml\fP file. By default, Cargo searches for the |
| 115 | \fBCargo.toml\fP file in the current directory or any parent directory. |
| 116 | .RE |
| 117 | .sp |
| 118 | \fB\-\-frozen\fP, \fB\-\-locked\fP |
| 119 | .RS 4 |
| 120 | Either of these flags requires that the \fBCargo.lock\fP file is |
| 121 | up\-to\-date. If the lock file is missing, or it needs to be updated, Cargo will |
| 122 | exit with an error. The \fB\-\-frozen\fP flag also prevents Cargo from |
| 123 | attempting to access the network to determine if it is out\-of\-date. |
| 124 | .sp |
| 125 | These may be used in environments where you want to assert that the |
| 126 | \fBCargo.lock\fP file is up\-to\-date (such as a CI build) or want to avoid network |
| 127 | access. |
| 128 | .RE |
| 129 | .sp |
| 130 | \fB\-\-offline\fP |
| 131 | .RS 4 |
| 132 | Prevents Cargo from accessing the network for any reason. Without this |
| 133 | flag, Cargo will stop with an error if it needs to access the network and |
| 134 | the network is not available. With this flag, Cargo will attempt to |
| 135 | proceed without the network if possible. |
| 136 | .sp |
| 137 | Beware that this may result in different dependency resolution than online |
| 138 | mode. Cargo will restrict itself to crates that are downloaded locally, even |
| 139 | if there might be a newer version as indicated in the local copy of the index. |
| 140 | See the \fBcargo\-fetch\fP(1) command to download dependencies before going |
| 141 | offline. |
| 142 | .sp |
| 143 | May also be specified with the \fBnet.offline\fP \c |
| 144 | .URL "https://doc.rust\-lang.org/cargo/reference/config.html" "config value" "." |
| 145 | .RE |
| 146 | .SS "Common Options" |
| 147 | .sp |
| 148 | \fB+TOOLCHAIN\fP |
| 149 | .RS 4 |
| 150 | If Cargo has been installed with rustup, and the first argument to \fBcargo\fP |
| 151 | begins with \fB+\fP, it will be interpreted as a rustup toolchain name (such |
| 152 | as \fB+stable\fP or \fB+nightly\fP). |
| 153 | See the \c |
| 154 | .URL "https://github.com/rust\-lang/rustup/" "rustup documentation" |
| 155 | for more information about how toolchain overrides work. |
| 156 | .RE |
| 157 | .sp |
| 158 | \fB\-h\fP, \fB\-\-help\fP |
| 159 | .RS 4 |
| 160 | Prints help information. |
| 161 | .RE |
| 162 | .sp |
| 163 | \fB\-Z\fP \fIFLAG\fP... |
| 164 | .RS 4 |
| 165 | Unstable (nightly\-only) flags to Cargo. Run \fBcargo \-Z help\fP for |
| 166 | details. |
| 167 | .RE |
| 168 | .SH "ENVIRONMENT" |
| 169 | .sp |
| 170 | See \c |
| 171 | .URL "https://doc.rust\-lang.org/cargo/reference/environment\-variables.html" "the reference" " " |
| 172 | for |
| 173 | details on environment variables that Cargo reads. |
| 174 | .SH "EXIT STATUS" |
| 175 | .sp |
| 176 | 0 |
| 177 | .RS 4 |
| 178 | The workspace is OK. |
| 179 | .RE |
| 180 | .sp |
| 181 | 1 |
| 182 | .RS 4 |
| 183 | The workspace is invalid. |
| 184 | .RE |
| 185 | .SH "EXAMPLES" |
| 186 | .sp |
| 187 | .RS 4 |
| 188 | .ie n \{\ |
| 189 | \h'-04' 1.\h'+01'\c |
| 190 | .\} |
| 191 | .el \{\ |
| 192 | . sp -1 |
| 193 | . IP " 1." 4.2 |
| 194 | .\} |
| 195 | Check the current workspace for errors: |
| 196 | .sp |
| 197 | .if n .RS 4 |
| 198 | .nf |
| 199 | cargo verify\-project |
| 200 | .fi |
| 201 | .if n .RE |
| 202 | .RE |
| 203 | .SH "SEE ALSO" |
| 204 | .sp |
| 205 | \fBcargo\fP(1), \fBcargo\-package\fP(1) |