mirror of
https://github.com/rust-lang/cargo.git
synced 2025-10-01 11:30:39 +00:00
Add registry.default
example
Signed-off-by: hi-rustin <rustin.liu@gmail.com>
This commit is contained in:
parent
5a574d39f3
commit
3f3eaa0f08
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user