#[non_exhaustive]pub enum CrateType {
Bin,
CDyLib,
DyLib,
Lib,
ProcMacro,
RLib,
StaticLib,
Unknown(String),
}
Expand description
Similar to kind
, but only reports the
Cargo crate types:
bin
, lib
, rlib
, dylib
, cdylib
, staticlib
, proc-macro
.
Everything that’s not a proc macro or a library of some kind is reported as “bin”.
Other possible values may be added in the future.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Bin
Binary executable target
CDyLib
Dynamic system library target
DyLib
Dynamic Rust library target
Lib
Rust library
ProcMacro
Procedural Macro
RLib
Rust library for use as an intermediate artifact
StaticLib
Static system library
Unknown(String)
Unkown type
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CrateType
impl<'de> Deserialize<'de> for CrateType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Ord for CrateType
impl Ord for CrateType
Source§impl PartialOrd for CrateType
impl PartialOrd for CrateType
impl Eq for CrateType
impl StructuralPartialEq for CrateType
Auto Trait Implementations§
impl Freeze for CrateType
impl RefUnwindSafe for CrateType
impl Send for CrateType
impl Sync for CrateType
impl Unpin for CrateType
impl UnwindSafe for CrateType
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