pub struct RustcTargetData<'cfg> {
    pub rustc: Rustc,
    /* private fields */
}
Expand description

Collection of information about rustc and the host and target.

Fields

rustc: Rustc

Information about rustc itself.

Implementations

Returns a “short” name for the given kind, suitable for keying off configuration in Cargo or presenting to users.

Whether a dependency should be compiled for the host or target platform, specified by CompileKind.

Gets the list of cfgs printed out from the compiler for the specified kind.

Information about the given target platform, learned by querying rustc.

Gets the target configuration for a particular host or target.

If a build script is overridden, this returns the BuildOutput to use.

lib_name is the links library name and kind is whether it is for Host or Target.

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.

Should always be Self

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.