pub struct DylibFixtureBuilder { /* private fields */ }Expand description
Builder for DylibFixture. See dylib_fixture.
Implementations§
Source§impl DylibFixtureBuilder
impl DylibFixtureBuilder
Sourcepub fn with_release(self, release: bool) -> Self
pub fn with_release(self, release: bool) -> Self
Build in release mode. Defaults to the test binary’s own profile
(release if tests are built with --release, otherwise debug).
Sourcepub fn signed_with(self, key: &SigningKey) -> Self
pub fn signed_with(self, key: &SigningKey) -> Self
Sign the produced dylib with key, writing a .sig file alongside it.
Only takes effect on the first (un-cached) build — subsequent cached
fixtures are returned unchanged. For tests that need re-signing,
re-sign via crate::signing::sign_dylib on the returned
DylibFixture::dylib_path.
Sourcepub fn build(self) -> DylibFixture
pub fn build(self) -> DylibFixture
Execute the build (or return cached result) and produce the fixture.
Panics on build failure — tests should not attempt recovery from a plugin that won’t compile.
Auto Trait Implementations§
impl Freeze for DylibFixtureBuilder
impl RefUnwindSafe for DylibFixtureBuilder
impl Send for DylibFixtureBuilder
impl Sync for DylibFixtureBuilder
impl Unpin for DylibFixtureBuilder
impl UnsafeUnpin for DylibFixtureBuilder
impl UnwindSafe for DylibFixtureBuilder
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