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ยง
- Registry
Client ๐ - Registry
Source ๐Ids
Enumsยง
- Registry
Credential Config - Registry settings loaded from config files.
- Registry
OrIndex - Represents either
--registryor--indexargument, 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
SourceIdfor an index or registry setting. - get_
source_ ๐id_ with_ package_ id - Very similar to
get_source_id, but is used when thepackage_idis known. - infer_
registry ๐ - If this set of packages has an unambiguous publish registry, find it.
- is_
replacement_ ๐for_ package_ source - registry ๐
- Returns the
RegistryandSourcebased on command-line and config settings.