cargo::ops

# Module registry

Source
Expand description

Operations that interact with the registry web API.

## Re-exports§

- `pub use self::info::info;`
- `pub use self::login::registry_login;`
- `pub use self::logout::registry_logout;`
- `pub use self::owner::modify_owners;`
- `pub use self::owner::OwnersOptions;`
- `pub use self::publish::publish;`
- `pub use self::publish::PublishOpts;`
- `pub use self::search::search;`
- `pub use self::yank::yank;`

## Modules§

- info 🔒
  Implementation of `cargo info`.
- login 🔒
  Interacts with the registry login API.
- logout 🔒
  Interacts with the registry logout.
- owner 🔒
  Interacts with the registry owners API.
- publish 🔒
  Interacts with the registry publish API.
- search 🔒
  Interacts with the registry search API.
- yank 🔒
  Interacts with the registry yank and unyank API.

## Structs§

- RegistrySourceIds 🔒

## Enums§

- RegistryCredentialConfig
  Registry settings loaded from config files.
- RegistryOrIndex
  Represents either `--registry` or `--index` argument, which is mutually exclusive.

## Functions§

- gen_replacement_error 🔒
- get_initial_source_id 🔒
- get_initial_source_id_from_registry_or_index 🔒
- get_replacement_source_ids 🔒
- get_source_id 🔒
  Gets the `SourceId` for an index or registry setting.
- get_source_id_with_package_id 🔒
  Very similar to `get_source_id`, but is used when the `package_id` is known.
- infer_registry 🔒
  If this set of packages has an unambiguous publish registry, find it.
- is_replacement_for_package_source 🔒
- registry 🔒
  Returns the `Registry` and `Source` based on command-line and config settings.