File tree 4 files changed +38
-9
lines changed
4 files changed +38
-9
lines changed Original file line number Diff line number Diff line change @@ -16,8 +16,10 @@ the vendor directory specified by `<path>` will contain all remote sources from
16
16
dependencies specified. Additional manifests beyond the default one can be
17
17
specified with the ` -s ` option.
18
18
19
- The ` cargo vendor ` command will also print out the configuration necessary
20
- to use the vendored sources, which you will need to add to ` .cargo/config.toml ` .
19
+ The configuration necessary to use the vendored sources would be printed to
20
+ stdout after ` cargo vendor ` completes the vendoring process.
21
+ You will need to add or redirect it to your Cargo configuration file,
22
+ which is usually ` .cargo/config.toml ` locally for the current package.
21
23
22
24
## OPTIONS
23
25
@@ -88,6 +90,10 @@ only a subset of the packages have changed.
88
90
89
91
cargo vendor -s ../path/to/Cargo.toml
90
92
93
+ 4 . Vendor and redirect the necessary vendor configs to a config file.
94
+
95
+ cargo vendor > path/to/my/cargo/config.toml
96
+
91
97
## SEE ALSO
92
98
{{man "cargo" 1}}
93
99
Original file line number Diff line number Diff line change @@ -13,9 +13,10 @@ DESCRIPTION
13
13
remote sources from dependencies specified. Additional manifests beyond
14
14
the default one can be specified with the -s option.
15
15
16
- The cargo vendor command will also print out the configuration necessary
17
- to use the vendored sources, which you will need to add to
18
- .cargo/config.toml.
16
+ The configuration necessary to use the vendored sources would be printed
17
+ to stdout after cargo vendor completes the vendoring process. You will
18
+ need to add or redirect it to your Cargo configuration file, which is
19
+ usually .cargo/config.toml locally for the current package.
19
20
20
21
OPTIONS
21
22
Vendor Options
@@ -157,6 +158,10 @@ EXAMPLES
157
158
158
159
cargo vendor -s ../path/to/Cargo.toml
159
160
161
+ 4. Vendor and redirect the necessary vendor configs to a config file.
162
+
163
+ cargo vendor > path/to/my/cargo/config.toml
164
+
160
165
SEE ALSO
161
166
cargo(1)
162
167
Original file line number Diff line number Diff line change @@ -16,8 +16,10 @@ the vendor directory specified by `<path>` will contain all remote sources from
16
16
dependencies specified. Additional manifests beyond the default one can be
17
17
specified with the ` -s ` option.
18
18
19
- The ` cargo vendor ` command will also print out the configuration necessary
20
- to use the vendored sources, which you will need to add to ` .cargo/config.toml ` .
19
+ The configuration necessary to use the vendored sources would be printed to
20
+ stdout after ` cargo vendor ` completes the vendoring process.
21
+ You will need to add or redirect it to your Cargo configuration file,
22
+ which is usually ` .cargo/config.toml ` locally for the current package.
21
23
22
24
## OPTIONS
23
25
@@ -189,6 +191,10 @@ details on environment variables that Cargo reads.
189
191
190
192
cargo vendor -s ../path/to/Cargo.toml
191
193
194
+ 4 . Vendor and redirect the necessary vendor configs to a config file.
195
+
196
+ cargo vendor > path/to/my/cargo/config.toml
197
+
192
198
## SEE ALSO
193
199
[ cargo(1)] ( cargo.html )
194
200
Original file line number Diff line number Diff line change @@ -14,8 +14,10 @@ the vendor directory specified by \fB<path>\fR will contain all remote sources f
14
14
dependencies specified. Additional manifests beyond the default one can be
15
15
specified with the \fB \- s \fR option.
16
16
.sp
17
- The \fB cargo vendor \fR command will also print out the configuration necessary
18
- to use the vendored sources, which you will need to add to \fB \& .cargo/config.toml \fR \& .
17
+ The configuration necessary to use the vendored sources would be printed to
18
+ stdout after \fB cargo vendor \fR completes the vendoring process.
19
+ You will need to add or redirect it to your Cargo configuration file,
20
+ which is usually \fB \& .cargo/config.toml \fR locally for the current package.
19
21
.SH "OPTIONS"
20
22
.SS "Vendor Options"
21
23
.sp
@@ -205,5 +207,15 @@ cargo vendor \-s ../path/to/Cargo.toml
205
207
.fi
206
208
.RE
207
209
.RE
210
+ .sp
211
+ .RS 4
212
+ \h '-04' 4.\h '+01' Vendor and redirect the necessary vendor configs to a config file.
213
+ .sp
214
+ .RS 4
215
+ .nf
216
+ cargo vendor > path/to/my/cargo/config.toml
217
+ .fi
218
+ .RE
219
+ .RE
208
220
.SH "SEE ALSO"
209
221
\fB cargo \fR (1)
You can’t perform that action at this time.
0 commit comments