Struct cargo::util::config::Config[][src]

pub struct Config { /* fields omitted */ }

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.

Methods

impl Config
[src]

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)

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

impl Debug for Config
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl !Send for Config

impl !Sync for Config