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]

[src]

[src]

[src]

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

[src]

The cargo git directory (<cargo_home>/git)

[src]

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

[src]

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

[src]

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

[src]

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

[src]

Get the path to the rustdoc executable

[src]

Get the path to the rustc executable

[src]

Get the path to the cargo executable

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

Loads configuration from the filesystem

[src]

Gets the index for a registry.

[src]

[src]

Trait Implementations

impl Debug for Config
[src]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl !Send for Config

impl !Sync for Config