Skip to content

Commit 8f1c4bc

Browse files
arlosiweihanglo
andauthored
Apply suggestions from code review
Co-authored-by: Weihang Lo <weihanglo@users.noreply.github.com>
1 parent a65694a commit 8f1c4bc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

text/0000-source_replacement_ambiguity.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,12 @@ When replacing a source with a registry, the `replace-with` key can reference th
3030
## Example scenarios
3131

3232
### Local source replacement (vendoring)
33-
A repository has a local `.cargo/config` that vendors all dependencies from crates.io. Fetching and building within the repository would work as expected with the vendored sources.
33+
A repository has a local `.cargo/config.toml` that vendors all dependencies from crates.io. Fetching and building within the repository would work as expected with the vendored sources.
3434

3535
If the user decides to publish the crate, `cargo publish --registry crates-io` will ignore the source-replacement and publish to crates.io.
3636

3737
### `crates-io` mirror registry
38-
A server has been set up that provides a complete mirror of crates.io. The user has configured a `~/.cargo/config` that points to the mirror registry in the `[registries]` table. The mirror requires authentication to access (based on RFC 3139).
38+
A server has been set up that provides a complete mirror of crates.io. The user has configured a `~/.cargo/config.toml` that points to the mirror registry in the `[registries]` table. The mirror requires authentication to access (based on RFC 3139).
3939

4040
The user can log in to the mirror using `cargo login --registry mirror`. Fetching and building use the mirror.
4141

@@ -76,11 +76,11 @@ For example, the following configuration would be valid:
7676
[source.crates-io]
7777
replace-with = "my-registry"
7878
79-
[registry.my-registry]
79+
[registries.my-registry]
8080
index = "https://my-registry-index/"
8181
```
8282

83-
This is necessary to allow the `--registry <NAME>` command-line argument to work with source-replaced registries. It also allows additional configuration (such as a token) to be specified for a source-replacement registry without duplicating configuration between `[registry]` and `[source]` tables.
83+
This is necessary to allow the `--registry <NAME>` command-line argument to work with source-replaced registries. It also allows additional configuration (such as a token) to be specified for a source-replacement registry without duplicating configuration between `[registries]` and `[source]` tables.
8484

8585
# Drawbacks
8686
[drawbacks]: #drawbacks

0 commit comments

Comments
 (0)