pub struct BuildConfig<'a> {
pub build_root: &'a Path,
pub adapter_wasm: &'a Path,
pub target: Option<&'a str>,
}Expand description
Knobs that don’t come from the wrapper inputs but are needed to actually drive cargo.
Fields§
§build_root: &'a PathRoot under which per-build directories live. Each unique
(target_wit, behavior, strategy) gets a subdirectory so
cargo’s incremental compile stays warm across runs.
adapter_wasm: &'a PathPath to the wasi_snapshot_preview1 reactor adapter that
wasm-tools component new uses to wrap the core module.
target: Option<&'a str>Cargo target triple. Defaults to "wasm32-wasip1" if None.
Auto Trait Implementations§
impl<'a> Freeze for BuildConfig<'a>
impl<'a> RefUnwindSafe for BuildConfig<'a>
impl<'a> Send for BuildConfig<'a>
impl<'a> Sync for BuildConfig<'a>
impl<'a> Unpin for BuildConfig<'a>
impl<'a> UnsafeUnpin for BuildConfig<'a>
impl<'a> UnwindSafe for BuildConfig<'a>
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more