Skip to content

Commit f77f7df

Browse files
committed
Add RFC hyperlinks
1 parent 8f1c4bc commit f77f7df

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

text/0000-source_replacement_ambiguity.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ There are multiple issues that this RFC attempts to resolve around source-replac
1616
* When Cargo is performing an API operation, source replacement is only respected for `crates-io`, not alternative registries. This is inconsistent.
1717
* The [error message](https://github.com/rust-lang/cargo/issues/6722) for attempting to publish to a replaced crates-io is confusing, and there is no workaround other than temporarily removing the source replacement configuration.
1818
* When performing an API operation other than `publish` with a replaced `crates-io` source, the `crates-io` credentials are sent to the replacement registry's API. This is a security risk.
19-
* It's unclear which credentials should be used when fetching a source-replaced authenticated alternate registry (RFC 3139).
19+
* It's unclear which credentials should be used when fetching a source-replaced authenticated alternate registry ([RFC 3139][3139]).
2020

2121
# Guide-level explanation
2222
[guide-level-explanation]: #guide-level-explanation
@@ -35,7 +35,7 @@ A repository has a local `.cargo/config.toml` that vendors all dependencies from
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.toml` 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][3139]).
3939

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

@@ -123,4 +123,6 @@ Cargo's tests rely on the ability to replace the crates.io source and have the c
123123
# Future possibilities
124124
[future-possibilities]: #future-possibilities
125125

126-
Can't think of anything.
126+
Can't think of anything.
127+
128+
[3139]: https://rust-lang.github.io/rfcs/3139-cargo-alternative-registry-auth.html

0 commit comments

Comments
 (0)