Skip to content

Commit 09c5b26

Browse files
committed
Auto merge of #11516 - hi-rustin:rustin-patch-example, r=ehuss
Add `registry.default` example
2 parents 5a574d3 + 3f3eaa0 commit 09c5b26

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/doc/src/reference/registries.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,12 @@ registry to use. For example, to publish the package in the current directory:
6868

6969
Instead of always passing the `--registry` command-line option, the default
7070
registry may be set in [`.cargo/config.toml`][config] with the `registry.default`
71-
key.
71+
key. For example:
72+
73+
```toml
74+
[registry]
75+
default = "my-registry"
76+
```
7277

7378
Setting the `package.publish` key in the `Cargo.toml` manifest restricts which
7479
registries the package is allowed to be published to. This is useful to

0 commit comments

Comments
 (0)