Skip to content

Commit 3f3eaa0

Browse files
committed
Add registry.default example
Signed-off-by: hi-rustin <rustin.liu@gmail.com>
1 parent 5a574d3 commit 3f3eaa0

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)