Get rid of native_library projection queries
They don't seem particularly useful as I don't expect native libraries to change frequently.
This commit is contained in:
parent
d7dd01fe8b
commit
ccc54613c3
7 changed files with 18 additions and 25 deletions
|
@ -53,6 +53,17 @@ impl NativeLibKind {
|
|||
NativeLibKind::RawDylib | NativeLibKind::Unspecified | NativeLibKind::LinkArg => false,
|
||||
}
|
||||
}
|
||||
|
||||
pub fn is_statically_included(&self) -> bool {
|
||||
matches!(self, NativeLibKind::Static { .. })
|
||||
}
|
||||
|
||||
pub fn is_dllimport(&self) -> bool {
|
||||
matches!(
|
||||
self,
|
||||
NativeLibKind::Dylib { .. } | NativeLibKind::RawDylib | NativeLibKind::Unspecified
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, PartialEq, Eq, PartialOrd, Ord, Hash, Encodable, Decodable)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue