Skip to content

Commit

Permalink
Auto merge of #11516 - hi-rustin:rustin-patch-example, r=ehuss
Browse files Browse the repository at this point in the history
Add `registry.default` example
  • Loading branch information
bors committed Dec 29, 2022
2 parents 5a574d3 + 3f3eaa0 commit 09c5b26
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/doc/src/reference/registries.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,12 @@ registry to use. For example, to publish the package in the current directory:

Instead of always passing the `--registry` command-line option, the default
registry may be set in [`.cargo/config.toml`][config] with the `registry.default`
key.
key. For example:

```toml
[registry]
default = "my-registry"
```

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

0 comments on commit 09c5b26

Please sign in to comment.