pub enum ArtifactKeepMode {
OnlyRlib,
OnlyRmeta,
Custom(Box<dyn Fn(&str) -> bool>),
}Expand description
Specifies which rlib/rmeta artifacts outputted by Cargo should be put into the resulting build stamp, and thus be included in dist archives and copied into sysroots by default. Note that some kinds of artifacts are copied automatically (e.g. native libraries).
Variants§
OnlyRlib
Only keep .rlib files, ignore .rmeta files
OnlyRmeta
Only keep .rmeta files, ignore .rlib files
Custom(Box<dyn Fn(&str) -> bool>)
Custom logic for keeping an artifact It receives the filename of an artifact, and returns true if it should be kept.
Auto Trait Implementations§
impl Freeze for ArtifactKeepMode
impl !RefUnwindSafe for ArtifactKeepMode
impl !Send for ArtifactKeepMode
impl !Sync for ArtifactKeepMode
impl Unpin for ArtifactKeepMode
impl !UnwindSafe for ArtifactKeepMode
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
§impl<T> Pointable for T
impl<T> Pointable for T
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 24 bytes
Size for each variant:
OnlyRlib: 0 bytesOnlyRmeta: 0 bytesCustom: 16 bytes