pub struct DiscoverOptions {
pub explicit_sysroot: Option<PathBuf>,
pub allow_lean_sysroot_env: bool,
pub allow_path_lookup: bool,
pub allow_elan: bool,
pub allow_lake_env: bool,
pub toolchain_file: Option<PathBuf>,
}Expand description
Knobs that gate which discovery probes run.
Default enables every probe; tests and reproducible builds narrow the
set to produce deterministic behaviour.
Fields§
§explicit_sysroot: Option<PathBuf>Caller-supplied sysroot, probed first. The ambient probes that follow
are each gated by their own allow_* flag, so a caller that wants an
explicit sysroot to be the only source clears those flags (the build
helpers do this automatically).
allow_lean_sysroot_env: boolConsult the LEAN_SYSROOT environment variable.
allow_path_lookup: boolConsult lean --print-prefix (requires lean on PATH).
allow_elan: boolConsult $ELAN_HOME + elan show active-toolchain.
allow_lake_env: boolConsult lake env printenv LEAN_SYSROOT under fixtures/lean.
toolchain_file: Option<PathBuf>Optional lean-toolchain file to parse for the recorded version.
Trait Implementations§
Source§impl Clone for DiscoverOptions
impl Clone for DiscoverOptions
Source§fn clone(&self) -> DiscoverOptions
fn clone(&self) -> DiscoverOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DiscoverOptions
impl Debug for DiscoverOptions
Auto Trait Implementations§
impl Freeze for DiscoverOptions
impl RefUnwindSafe for DiscoverOptions
impl Send for DiscoverOptions
impl Sync for DiscoverOptions
impl Unpin for DiscoverOptions
impl UnsafeUnpin for DiscoverOptions
impl UnwindSafe for DiscoverOptions
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