Missing documentation for registry-index
in dependency specifying
#9807
Labels
A-registries
Area: registries
C-bug
Category: bug
S-triage
Status: This issue is waiting on initial triage.
Problem
registry-index
can be used to directly specify a registry index url for dependencies inCargo.toml
, without need to touch user's config.cargo/config.toml
likeregistry
. It's quite useful since everyone can clone and build your crate without the need to pollute their own user config.Here's a internal test for this feature
cargo/tests/testsuite/package.rs
Line 971 in 9bc7a37
The field is fully functional on stable cargo 1.54.0 but NOT mentioned in cargo reference. Only
registry
is documented.https://doc.rust-lang.org/cargo/reference/specifying-dependencies.html
https://doc.rust-lang.org/cargo/reference/registries.html
Possible Solution(s)
Add the documentation for the
registry-index
feature.Notes
Output of
cargo version
: cargo 1.54.0 (5ae8d74 2021-06-22)I actually found this field in the crate
cargo_toml
, which defines structures ofCargo.toml
. And I surprisingly found this undocumented but working-on-stable feature.The text was updated successfully, but these errors were encountered: