File tree Expand file tree Collapse file tree 4 files changed +24
-0
lines changed Expand file tree Collapse file tree 4 files changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,12 @@ 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
+ Cargo treats vendored sources as read-only as it does to registry and git sources.
25
+ If you intend to modify a crate from a remote source,
26
+ use ` [patch] ` or a ` path ` dependency pointing to a local copy of that crate.
27
+ Cargo will then correctly handle the crate on incremental rebuilds,
28
+ as it knowns that it is no longer a read-only dependency.
29
+
24
30
## OPTIONS
25
31
26
32
### Vendor Options
Original file line number Diff line number Diff line change @@ -18,6 +18,12 @@ 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
+ Cargo treats vendored sources as read-only as it does to registry and
22
+ git sources. If you intend to modify a crate from a remote source, use
23
+ [patch] or a path dependency pointing to a local copy of that crate.
24
+ Cargo will then correctly handle the crate on incremental rebuilds, as
25
+ it knowns that it is no longer a read-only dependency.
26
+
21
27
OPTIONS
22
28
Vendor Options
23
29
-s manifest, --sync manifest
Original file line number Diff line number Diff line change @@ -21,6 +21,12 @@ 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
+ Cargo treats vendored sources as read-only as it does to registry and git sources.
25
+ If you intend to modify a crate from a remote source,
26
+ use ` [patch] ` or a ` path ` dependency pointing to a local copy of that crate.
27
+ Cargo will then correctly handle the crate on incremental rebuilds,
28
+ as it knowns that it is no longer a read-only dependency.
29
+
24
30
## OPTIONS
25
31
26
32
### Vendor Options
Original file line number Diff line number Diff line change @@ -18,6 +18,12 @@ 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
+ Cargo treats vendored sources as read\- only as it does to registry and git sources.
23
+ If you intend to modify a crate from a remote source,
24
+ use \fB [patch] \fR or a \fB path \fR dependency pointing to a local copy of that crate.
25
+ Cargo will then correctly handle the crate on incremental rebuilds,
26
+ as it knowns that it is no longer a read\- only dependency.
21
27
.SH "OPTIONS"
22
28
.SS "Vendor Options"
23
29
.sp
You can’t perform that action at this time.
0 commit comments