Re-exportsยง
pub use self::context::homedir;
pub use self::context::ConfigValue;
pub use self::context::GlobalContext;
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::internal;
pub use self::errors::CargoResult;
pub use self::errors::CliResult;
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::rustc::Rustc;
Modulesยง
- Registry authentication support.
- Support for locking the package and index caches.
- canonical_
url ๐ - Cargoโs config system.
- counter ๐
- 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. - A small TCP server to handle collection of diagnostics information in a cross-platform way for the
cargo fix
command. - flock ๐File-locking support.
- hasher ๐Implementation of a hasher that produces the same values across releases.
- hostname ๐
- into_
url_ ๐with_ base - io ๐
- Job management (mostly for windows)
- lockserver ๐An implementation of IPC locks, guaranteed to be released if a process dies
- Utilities for networking.
- progress ๐Support for CLI progress bars.
- queue ๐
- Helpers for validating and checking names like package and crate names.
- semver_
eval_ ๐ext Extendsemver::VersionReq
withmatches_prerelease
which doesnโt preclude pre-releases by default. - semver_
ext ๐ - Utilities to help with working with sqlite.
- Utilities for in-place editing of Cargo.toml manifests.
- vcs ๐
- workspace ๐
Structsยง
- A newtype wrapper around
Url
which represents a โcanonicalโ version of an original URL. - A locked file.
- A โfilesystemโ is intended to be a globally shared, hence locked, resource in Cargo.
- CLI progress bar.
- A simple, threadsafe, queue of items of type
T
Enumsยง
- Indicates the style of information for displaying the amount of progress.
Traitsยง
- A type that can be interpreted as a relative Url and converted to a Url.
Functionsยง
- Get the current
umask
value. - Returns the hostname of the current system.
- Formats a number of bytes into a human readable SI-prefixed size. Returns a tuple of
(quantity, units)
. - The path that we pass to rustc is actually fairly important because it will show up in error messages (important for readability), debug information (important for caching), etc. As a result we need to be pretty careful how we actually invoke rustc.