pub struct Toolchain {
pub provider: Option<Provider>,
pub sysroot: PathBuf,
pub gcc_runtime: PathBuf,
pub cc: PathBuf,
pub ld: PathBuf,
pub ceiling: Version,
}Fields§
§provider: Option<Provider>§sysroot: PathBuf§gcc_runtime: PathBuf§cc: PathBuf§ld: PathBuf§ceiling: VersionImplementations§
Source§impl Toolchain
impl Toolchain
pub fn from_provider( path: &Path, cc: PathBuf, ld: PathBuf, ceiling: Version, ) -> Result<Self, String>
pub fn new( sysroot: PathBuf, gcc_runtime: PathBuf, cc: PathBuf, ld: PathBuf, ceiling: Version, ) -> Result<Self, String>
pub fn driver_args(&self) -> Vec<OsString>
pub fn diagnose(&self) -> Result<Diagnostics, String>
pub fn print_diagnostics(&self, info: &Diagnostics)
pub fn rustflags(&self, driver: &Path) -> Result<OsString, String>
pub fn rustflag_list(&self, driver: &Path) -> Result<Vec<String>, String>
Sourcepub fn variables(&self) -> Vec<(&'static str, OsString)>
pub fn variables(&self) -> Vec<(&'static str, OsString)>
The selection the helpers read (libc-linker, libc-cc).
pub fn set_environment(&self, cmd: &mut Command)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Toolchain
impl RefUnwindSafe for Toolchain
impl Send for Toolchain
impl Sync for Toolchain
impl Unpin for Toolchain
impl UnsafeUnpin for Toolchain
impl UnwindSafe for Toolchain
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more