We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
[patch]
1 parent 6867277 commit 1ac40e2Copy full SHA for 1ac40e2
src/doc/src/reference/overriding-dependencies.md
@@ -266,6 +266,12 @@ git = 'https://github.com/example/baz'
266
baz = { git = 'https://github.com/example/patched-baz', branch = 'my-branch' }
267
```
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
+
275
The `[patch]` table is made of dependency-like sub-tables. Each key after
276
`[patch]` is a URL of the source that is being patched, or the name of a
277
registry. The name `crates-io` may be used to override the default registry
0 commit comments