File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -266,6 +266,12 @@ git = 'https://github.com/example/baz'
266
266
baz = { git = ' https://github.com/example/patched-baz' , branch = ' my-branch' }
267
267
```
268
268
269
+ > ** Note** : The ` [patch] ` table can also be specified as a [ configuration
270
+ > option] ( config.md ) , such as in a ` .cargo/config.toml ` file or a CLI option
271
+ > like ` --config 'patch.crates-io.rand.path="rand"' ` . This can be useful for
272
+ > local-only changes that you don't want to commit, or temporarily testing a
273
+ > patch.
274
+
269
275
The ` [patch] ` table is made of dependency-like sub-tables. Each key after
270
276
` [patch] ` is a URL of the source that is being patched, or the name of a
271
277
registry. The name ` crates-io ` may be used to override the default registry
You can’t perform that action at this time.
0 commit comments