Skip to main content

Module registry

Module registry 

Source
Expand description

Operations that interact with the registry web API.

Re-exportsยง

use cargo_util::collections::HashSet; ๐Ÿ”’
use std::str; ๐Ÿ”’
use anyhow::Context as _; ๐Ÿ”’
use anyhow::bail; ๐Ÿ”’
use anyhow::format_err; ๐Ÿ”’
use cargo_credential::Operation; ๐Ÿ”’
use cargo_credential::Secret; ๐Ÿ”’
use crates_io::Registry; ๐Ÿ”’
use url::Url; ๐Ÿ”’
use crate::context::GlobalContext; ๐Ÿ”’
use crate::context::PathAndArgs; ๐Ÿ”’
use crate::sources::source::Source; ๐Ÿ”’
use crate::sources::RegistrySource; ๐Ÿ”’
use crate::sources::SourceConfigMap; ๐Ÿ”’
use crate::util::auth; ๐Ÿ”’
use crate::util::cache_lock::CacheLockMode; ๐Ÿ”’
use crate::util::errors::CargoResult; ๐Ÿ”’
use crate::util::network::http_async; ๐Ÿ”’
use crate::workspace::Package; ๐Ÿ”’
use crate::workspace::PackageId; ๐Ÿ”’
use crate::workspace::SourceId; ๐Ÿ”’
pub use self::cargo_info::info;
pub use self::cargo_login::registry_login;
pub use self::cargo_logout::registry_logout;
pub use self::cargo_owner::OwnersOptions;
pub use self::cargo_owner::modify_owners;
pub use self::cargo_publish::PublishOpts;
pub use self::cargo_publish::publish;
pub use self::cargo_search::search;
pub use self::cargo_yank::yank;
pub(crate) use self::cargo_publish::prepare_transmit; ๐Ÿ”’

Modulesยง

cargo_info ๐Ÿ”’
Implementation of cargo info.
cargo_login ๐Ÿ”’
Interacts with the registry login API.
cargo_logout ๐Ÿ”’
Interacts with the registry logout.
cargo_owner ๐Ÿ”’
Interacts with the registry owners API.
cargo_publish ๐Ÿ”’
Interacts with the registry publish API.
cargo_search ๐Ÿ”’
Interacts with the registry search API.
cargo_yank ๐Ÿ”’
Interacts with the registry yank and unyank API.

Structsยง

RegistryClient ๐Ÿ”’
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.