Re-exportsΒ§
use std::path::Path;πuse std::path::PathBuf;πuse std::time::Duration;πpub use self::canonical_url::CanonicalUrl;pub(crate) use self::counter::MetricsCounter;πpub use self::dependency_queue::DependencyQueue;pub use self::diagnostic_server::RustfixDiagnosticServer;pub use self::edit_distance::closest;pub use self::edit_distance::closest_msg;pub use self::edit_distance::edit_distance;pub use self::errors::CliError;pub use self::errors::CargoResult;pub use self::errors::CliResult;pub use self::errors::internal;pub use self::flock::FileLock;pub use self::flock::Filesystem;pub use self::graph::Graph;pub use self::hex::hash_u64;pub use self::hex::short_hash;pub use self::hex::to_hex;pub use self::into_url::IntoUrl;pub use self::into_url_with_base::IntoUrlWithBase;pub(crate) use self::io::LimitErrorReader;πpub use self::lockserver::LockServer;pub use self::lockserver::LockServerClient;pub use self::lockserver::LockServerStarted;pub use self::logger::BuildLogger;pub use self::once::OnceExt;pub use self::progress::Progress;pub use self::progress::ProgressStyle;pub use self::queue::Queue;pub use self::rustc::Rustc;pub use self::semver_ext::VersionReqMatchMode;pub use self::semver_ext::OptVersionReq;pub use self::semver_ext::VersionExt;pub use self::unhashed::Unhashed;pub use self::vcs::FossilRepo;pub use self::vcs::GitRepo;pub use self::vcs::HgRepo;pub use self::vcs::PijulRepo;pub use self::vcs::existing_vcs_repo;pub use self::workspace::add_path_args;pub use self::workspace::path_args;pub use self::workspace::print_available_benches;pub use self::workspace::print_available_binaries;pub use self::workspace::print_available_examples;pub use self::workspace::print_available_packages;pub use self::workspace::print_available_tests;pub use crate::context::GlobalContext;pub use crate::context::homedir;pub use local_poll_adapter::LocalPollAdapter;
ModulesΒ§
- auth
- Registry authentication support.
- cache_
lock - Support for locking the package and index caches.
- canonical_
url π - command_
prelude - counter π
- cpu
- credential
- Built-in Cargo credential providers
- dependency_
queue π - A graph-like structure used to represent a set of dependencies and in what order they should be built.
- diagnostic_
server - A small TCP server to handle collection of diagnostics information in a
cross-platform way for the
cargo fixcommand. - edit_
distance - errors
- flock
- File-locking support.
- frontmatter
- graph
- hasher π
- A hasher that produces the same values across releases and platforms.
- hex
- important_
paths - interning
- into_
url - into_
url_ πwith_ base - io π
- job
- Job management (mostly for windows)
- local_
poll_ πadapter - lockserver π
- An implementation of IPC locks, guaranteed to be released if a process dies
- log_
message - Messages for logging.
- logger
- Build analysis logging infrastructure.
- machine_
message - network
- Utilities for networking.
- once π
- Extension functions for
std::sync::OnceLock/std::cell::OnceCell - open
- For opening files or URLs with the preferred application.
- progress π
- Support for CLI progress bars.
- queue π
- restricted_
names - Helpers for validating and checking names like package and crate names.
- rustc
- semver_
eval_ πext - Extend
semver::VersionReqwithmatches_prereleasewhich doesnβt preclude pre-releases by default. - semver_
ext π - sqlite
- Utilities to help with working with sqlite.
- style
- time_
span - unhashed π
- vcs π
- workspace π
StructsΒ§
- Human
Bytes - Formats a number of bytes into a human readable SI-prefixed size.
EnumsΒ§
- Config
Value - Similar to [
toml::Value] but includes the source location where it is defined.
FunctionsΒ§
- block_
on π - Run a future to completion on the current thread.
- block_
on_ πstream - Turn a stream into a blocking iterator.
- elapsed
- get_
umask - Get the current
umaskvalue. - indented_
lines - is_
rustup - truncate_
with_ ellipsis - try_
canonicalize
Type AliasesΒ§
- Stable
Hasher - Stable 128-bits Sip Hasher