Module cargo::ops

source ·

Modules

Core of cargo-add command
The Cargo “compile” operation
Implementation of cargo config subcommand.
cargo_doc 🔒
cargo_new 🔒
Core of cargo-remove command
cargo_run 🔒
cargo_test 🔒
fix 🔒
High-level overview of how fix works:
lockfile 🔒
registry 🔒
resolve 🔒
High-level APIs for executing the resolver.
Implementation of cargo tree.
vendor 🔒

Structs

Contains information about how a package should be compiled.
Strongly typed options for the cargo doc command.
This is the structure that is serialized and displayed to the user.
Result for resolve_ws_with_opts.

Enums

Filter to apply to the root package to select which Cargo targets will be built. (examples, bins, benches, tests, …)
Indicates which Cargo targets will be selected to be built.
Indicates whether or not the library target gets included.
Represents the selected packages that will be built.
Registry settings loaded from config files.

Functions

Read the paths configuration variable to discover all path overrides that have been configured.
Returns true if the dependency is either git or path, false otherwise Error if a git/path dep is transitive, but has no version (registry source). This check is performed on dependencies before publishing or packaging
Cleans the package’s build artifacts.
Compiles!
Like compile but allows specifying a custom Executor that will be able to intercept build calls and add custom logic.
Like compile_with_exec but without warnings from manifest parsing.
Configure a libcurl http handle with the defaults options for Cargo
Prepares all required information for the actual compilation.
Main method for cargo doc.
Executes cargo fetch.
Entry point for cargo running as a proxy for rustc.
Provide the lock address when running in proxy mode
Creates a new HTTP handle with appropriate global configuration for cargo.
Display a list of installed binaries.
Loads the manifest, resolves the dependencies of the package to the concrete used versions - considering overrides - and writes all dependencies in a JSON format to stdout.
Executes rustc --print <VALUE>.
Gets all of the features enabled for a package, plus its dependencies’ features.
Generate a toml String of Cargo.lock from a Resolve.
Resolves all dependencies for a package using an optional previous instance of resolve to guide the resolution process.
Resolves all dependencies for the workspace using the previous lock file as a guide if present.
Resolves dependencies for some packages of the workspace, taking into account paths overrides and activated features.
Compiles and runs benchmarks.
Compiles and runs tests.