pub struct SysrootBuilder { /* private fields */ }
Expand description

Information about a to-be-created sysroot.

Implementations§

Prepare to create a new sysroot in the given folder (that folder should later be passed to rustc via --sysroot), for the given target.

Sets the build mode (regular build vs check-only build).

Sets the sysroot configuration (which parts of the sysroot to build and with which features).

Appends the given flag.

Appends the given flags.

Sets the cargo command to call.

Sets the rustc version information (in case the user has that available).

Build the self sysroot from the given sources.

src_dir must be the library source folder, i.e., the one that contains std/Cargo.toml.

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.