pub struct Builder { /* private fields */ }Expand description
Builder for cold (Tier 2) rebuilds. Tier 1 hot-patches live in
crate::hotpatch::Patcher — Builder is only invoked for
dependency-shaped changes (Cargo.toml edits) and as a fallback
when Tier 1 errors.
Implementations§
Source§impl Builder
impl Builder
pub fn new( workspace_root: PathBuf, crate_dir: PathBuf, package: String, target: Target, ) -> Self
pub fn with_features(self, features: Vec<String>) -> Self
Sourcepub fn features(&self) -> &[String]
pub fn features(&self) -> &[String]
Read-only view of the features currently configured. The dev
loop reads this when constructing the [Installer] so the iOS
xcodebuild env var (WHISKER_FEATURES) stays in sync with what
the Builder would have passed to a direct cargo invocation.
Sourcepub fn with_capture(self, capture: CaptureShims) -> Self
pub fn with_capture(self, capture: CaptureShims) -> Self
Elevate the next build into a fat build. The cache dirs and
shim binaries from capture get folded into the cargo
invocation via env vars — see
whisker_build::capture_env_vars for the exact set.
Sourcepub async fn build(&self) -> Result<()>
pub async fn build(&self) -> Result<()>
Run the build for the current target. Inherits stdout/stderr.
Sourcepub fn captures_shims(&self) -> bool
pub fn captures_shims(&self) -> bool
Whether this builder is configured for a fat build.
Auto Trait Implementations§
impl Freeze for Builder
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnsafeUnpin for Builder
impl UnwindSafe for Builder
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