Struct cargo::util::Rustc

source ·
pub struct Rustc {
    pub path: PathBuf,
    pub wrapper: Option<PathBuf>,
    pub verbose_version: String,
    pub host: String,
    /* private fields */
}
Expand description

Information on the rustc executable

Fields

path: PathBuf

The location of the exe

wrapper: Option<PathBuf>

An optional program that will be passed the path of the rust exe as its first argument, and rustc args following this.

verbose_version: String

Verbose version information (the output of rustc -vV)

host: String

The host triple (arch-platform-OS), this comes from verbose_version.

Implementations

Run the compiler at path to learn various pieces of information about it, with an optional wrapper.

If successful this function returns a description of the compiler along with a list of its capabilities.

Get a process builder set up to use the found rustc version, with a wrapper if Some

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.