pub struct RustcBootstrapConfig {
pub rustc_version: String,
pub target_triple: String,
pub seed_rustc_path: String,
pub seed_cargo_path: String,
pub llvm_root: String,
pub install_prefix: String,
pub enable_docs: bool,
pub enable_extended: bool,
pub current_stage: BootstrapStage,
}Expand description
Rustc bootstrap configuration
Fields§
§rustc_version: String§target_triple: String§seed_rustc_path: String§seed_cargo_path: String§llvm_root: String§install_prefix: String§enable_docs: bool§enable_extended: bool§current_stage: BootstrapStageImplementations§
Source§impl RustcBootstrapConfig
impl RustcBootstrapConfig
Sourcepub fn generate_config_toml(&self) -> String
pub fn generate_config_toml(&self) -> String
Generate config.toml for x.py
Sourcepub fn build_command(&self, stage: BootstrapStage) -> String
pub fn build_command(&self, stage: BootstrapStage) -> String
Generate x.py build command for a given stage
Sourcepub fn install_command(&self) -> String
pub fn install_command(&self) -> String
Generate x.py install command
Sourcepub fn advance_stage(&mut self) -> Result<(), KernelError>
pub fn advance_stage(&mut self) -> Result<(), KernelError>
Advance to next stage
Sourcepub fn verify_rustc(&self, version_output: &str) -> bool
pub fn verify_rustc(&self, version_output: &str) -> bool
Verify that a rustc binary at the given path produces expected output
Sourcepub fn check_reproducibility(
&self,
stage1_hash: &[u8; 32],
stage2_hash: &[u8; 32],
) -> bool
pub fn check_reproducibility( &self, stage1_hash: &[u8; 32], stage2_hash: &[u8; 32], ) -> bool
Check if Stage 2 output matches Stage 1 (reproducibility)
Trait Implementations§
Source§impl Clone for RustcBootstrapConfig
impl Clone for RustcBootstrapConfig
Source§fn clone(&self) -> RustcBootstrapConfig
fn clone(&self) -> RustcBootstrapConfig
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RustcBootstrapConfig
impl Debug for RustcBootstrapConfig
Auto Trait Implementations§
impl Freeze for RustcBootstrapConfig
impl RefUnwindSafe for RustcBootstrapConfig
impl Send for RustcBootstrapConfig
impl Sync for RustcBootstrapConfig
impl Unpin for RustcBootstrapConfig
impl UnwindSafe for RustcBootstrapConfig
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)