Struct cargo::util::config::Config

source ·
pub struct Config { /* private fields */ }
Expand description

Configuration information for cargo. This is not specific to a build, it is information relating to cargo itself.

This struct implements Default: all fields can be inferred.

Implementations

The user’s cargo home directory (OS-dependent)

The cargo git directory (<cargo_home>/git)

The cargo registry index directory (<cargo_home>/registry/index)

The cargo registry cache directory (<cargo_home>/registry/path)

The cargo registry source directory (<cargo_home>/registry/src)

The default cargo registry (alternative-registry)

Get a reference to the shell, for e.g. writing error messages

Get the path to the rustdoc executable

Get the path to the rustc executable

Get the path to the cargo executable

Loads configuration from the filesystem

Gets the index for a registry.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.