Adding a [registries] Entry
Example registries entry - would be written to $CARGO_HOME/config.toml or other configuration path:
[registries.my-crate-registry]
index = "https://git.shipyard.rs/my-org/crate-index.git"
One this has been set, cargo will recognize the registry in various subcommands via the --registry flag, e.g.:
cargo publish \
--registry my-crate-registry
When a registries entry has not been set, Cargo will return a "no index set" error:
$ cargo update
error: failed to parse manifest at `~/src/my-private-crate/Cargo.toml`
Caused by:
no index found for registry: `my-shipyard-registry`