blob: a395013406a556908196f9a5eb09b0f923588ef5 [file] [log] [blame]
Matthew Maurerbd398542019-09-05 16:25:08 -07001'\" t
2.\" Title: cargo-verify-project
3.\" Author: [see the "AUTHOR(S)" section]
4.\" Generator: Asciidoctor 1.5.8
5.\" Date: 2019-04-16
6.\" Manual: \ \&
7.\" Source: \ \&
8.\" Language: English
9.\"
10.TH "CARGO\-VERIFY\-PROJECT" "1" "2019-04-16" "\ \&" "\ \&"
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"
31cargo\-verify\-project \- Check correctness of crate manifest
32.SH "SYNOPSIS"
33.sp
34\fBcargo verify\-project [\fIOPTIONS\fP]\fP
35.SH "DESCRIPTION"
36.sp
37This command will parse the local manifest and check its validity. It emits a
38JSON 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
46An 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
58Use verbose output. May be specified twice for "very verbose" output which
59includes extra output such as dependency warnings and build script output.
60May 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
66No output printed to stdout.
67.RE
68.sp
69\fB\-\-color\fP \fIWHEN\fP
70.RS 4
71Control 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
82terminal.
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
107May 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
114Path to the \fBCargo.toml\fP file. By default, Cargo searches in the current
115directory or any parent directory for the \fBCargo.toml\fP file.
116.RE
117.sp
118\fB\-\-frozen\fP, \fB\-\-locked\fP
119.RS 4
120Either of these flags requires that the \fBCargo.lock\fP file is
121up\-to\-date. If the lock file is missing, or it needs to be updated, Cargo will
122exit with an error. The \fB\-\-frozen\fP flag also prevents Cargo from
123attempting to access the network to determine if it is out\-of\-date.
124.sp
125These 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
127access.
128.RE
129.sp
130\fB\-\-offline\fP
131.RS 4
132Prevents Cargo from accessing the network for any reason. Without this
133flag, Cargo will stop with an error if it needs to access the network and
134the network is not available. With this flag, Cargo will attempt to
135proceed without the network if possible.
136.sp
137Beware that this may result in different dependency resolution than online
138mode. Cargo will restrict itself to crates that are downloaded locally, even
139if there might be a newer version as indicated in the local copy of the index.
140See the \fBcargo\-fetch\fP(1) command to download dependencies before going
141offline.
142.sp
143May 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\-h\fP, \fB\-\-help\fP
149.RS 4
150Prints help information.
151.RE
152.sp
153\fB\-Z\fP \fIFLAG\fP...
154.RS 4
155Unstable (nightly\-only) flags to Cargo. Run \fBcargo \-Z help\fP for
156details.
157.RE
158.SH "ENVIRONMENT"
159.sp
160See \c
161.URL "https://doc.rust\-lang.org/cargo/reference/environment\-variables.html" "the reference" " "
162for
163details on environment variables that Cargo reads.
164.SH "EXIT STATUS"
165.sp
1660
167.RS 4
168The workspace is OK.
169.RE
170.sp
1711
172.RS 4
173The workspace is invalid.
174.RE
175.SH "EXAMPLES"
176.sp
177.RS 4
178.ie n \{\
179\h'-04' 1.\h'+01'\c
180.\}
181.el \{\
182. sp -1
183. IP " 1." 4.2
184.\}
185Check the current workspace for errors:
186.sp
187.if n .RS 4
188.nf
189cargo verify\-project
190.fi
191.if n .RE
192.RE
193.SH "SEE ALSO"
194.sp
195\fBcargo\fP(1), \fBcargo\-package\fP(1)