pub struct BundleSpec {
pub libs: Vec<NativeLib>,
}Expand description
Declarative bundle of native libraries to ship.
Fields§
§libs: Vec<NativeLib>Implementations§
Source§impl BundleSpec
impl BundleSpec
Sourcepub fn from_env() -> Self
pub fn from_env() -> Self
Load a bundle from the environment.
SHIRABE_BUNDLE_LIBS: path-sep list (:/;) of files to ship verbatim.SHIRABE_BUNDLE_MANIFEST: path to abundle.tomlof[[lib]]tables (path = "…",optional = true,target_os = "linux").
Both may be set; entries are merged. Missing sources are silently ignored so this is safe to call in any environment.
Trait Implementations§
Source§impl Clone for BundleSpec
impl Clone for BundleSpec
Source§fn clone(&self) -> BundleSpec
fn clone(&self) -> BundleSpec
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 BundleSpec
impl Debug for BundleSpec
Source§impl Default for BundleSpec
impl Default for BundleSpec
Source§fn default() -> BundleSpec
fn default() -> BundleSpec
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for BundleSpec
impl RefUnwindSafe for BundleSpec
impl Send for BundleSpec
impl Sync for BundleSpec
impl Unpin for BundleSpec
impl UnsafeUnpin for BundleSpec
impl UnwindSafe for BundleSpec
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