File tree Expand file tree Collapse file tree 4 files changed +20
-0
lines changed Expand file tree Collapse file tree 4 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,11 @@ stdout after `cargo vendor` completes the vendoring process.
21
21
You will need to add or redirect it to your Cargo configuration file,
22
22
which is usually ` .cargo/config.toml ` locally for the current package.
23
23
24
+ By default, Cargo treats vendored crates as read-only as it does crates.io.
25
+ To modify a vendored crate the correct way is to use ` [patch] ` or a ` path ` dependency,
26
+ and Cargo will then correctly handle the crate on incremental rebuilds as it knowns
27
+ that it is not a read-only dependency.
28
+
24
29
## OPTIONS
25
30
26
31
### Vendor Options
Original file line number Diff line number Diff line change @@ -18,6 +18,11 @@ DESCRIPTION
18
18
need to add or redirect it to your Cargo configuration file, which is
19
19
usually .cargo/config.toml locally for the current package.
20
20
21
+ By default, Cargo treats vendored crates as read-only as it does
22
+ crates.io. To modify a vendored crate the correct way is to use [patch]
23
+ or a path dependency, and Cargo will then correctly handle the crate on
24
+ incremental rebuilds as it knowns that it is not a read-only dependency.
25
+
21
26
OPTIONS
22
27
Vendor Options
23
28
-s manifest, --sync manifest
Original file line number Diff line number Diff line change @@ -21,6 +21,11 @@ stdout after `cargo vendor` completes the vendoring process.
21
21
You will need to add or redirect it to your Cargo configuration file,
22
22
which is usually ` .cargo/config.toml ` locally for the current package.
23
23
24
+ By default, Cargo treats vendored crates as read-only as it does crates.io.
25
+ To modify a vendored crate the correct way is to use ` [patch] ` or a ` path ` dependency,
26
+ and Cargo will then correctly handle the crate on incremental rebuilds as it knowns
27
+ that it is not a read-only dependency.
28
+
24
29
## OPTIONS
25
30
26
31
### Vendor Options
Original file line number Diff line number Diff line change @@ -18,6 +18,11 @@ The configuration necessary to use the vendored sources would be printed to
18
18
stdout after \fB cargo vendor \fR completes the vendoring process.
19
19
You will need to add or redirect it to your Cargo configuration file,
20
20
which is usually \fB \& .cargo/config.toml \fR locally for the current package.
21
+ .sp
22
+ By default, Cargo treats vendored crates as read\- only as it does crates.io.
23
+ To modify a vendored crate the correct way is to use \fB [patch] \fR or a \fB path \fR dependency,
24
+ and Cargo will then correctly handle the crate on incremental rebuilds as it knowns
25
+ that it is not a read\- only dependency.
21
26
.SH "OPTIONS"
22
27
.SS "Vendor Options"
23
28
.sp
You can’t perform that action at this time.
0 commit comments