pub struct LibraryDependency {
pub name: String,
pub static_library: Option<FileData>,
pub static_filename: Option<PathBuf>,
pub dynamic_library: Option<FileData>,
pub dynamic_filename: Option<PathBuf>,
pub framework: bool,
pub system: bool,
}Expand description
Represents a dependency on a library.
The library can be defined a number of ways and multiple variants may be present.
Fields§
§name: StringName of the library.
This will be used to tell the linker what to link.
static_library: Option<FileData>Static library version of library.
static_filename: Option<PathBuf>The filename the static library should be materialized as.
dynamic_library: Option<FileData>Shared library version of library.
dynamic_filename: Option<PathBuf>The filename the dynamic library should be materialized as.
framework: boolWhether this is a system framework (macOS).
system: boolWhether this is a system library.
Implementations§
Trait Implementations§
Source§impl Clone for LibraryDependency
impl Clone for LibraryDependency
Source§fn clone(&self) -> LibraryDependency
fn clone(&self) -> LibraryDependency
Returns a duplicate of the value. Read more
1.0.0 · 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 LibraryDependency
impl Debug for LibraryDependency
Source§impl PartialEq for LibraryDependency
impl PartialEq for LibraryDependency
impl StructuralPartialEq for LibraryDependency
Auto Trait Implementations§
impl Freeze for LibraryDependency
impl RefUnwindSafe for LibraryDependency
impl Send for LibraryDependency
impl Sync for LibraryDependency
impl Unpin for LibraryDependency
impl UnwindSafe for LibraryDependency
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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