Struct build_info_common::CrateInfo
source · pub struct CrateInfo {
pub name: String,
pub version: Version,
pub authors: Vec<String>,
pub license: Option<String>,
pub enabled_features: Vec<String>,
pub available_features: Vec<String>,
pub dependencies: Vec<CrateInfo>,
}
Expand description
Information about the current crate (i.e., the crate for which build information has been generated)
Fields§
§name: String
The name, as defined in Cargo.toml
.
version: Version
The version, as defined in Cargo.toml
.
The authors, as defined in Cargo.toml
.
license: Option<String>
The license string, as defined in Cargo.toml
.
enabled_features: Vec<String>
The features of this crate that are currently enabled in this configuration.
available_features: Vec<String>
All features that are available from this crate.
dependencies: Vec<CrateInfo>
Dependencies of this crate.
Will only be filled with data if collect_dependencies(true)
was called on build_script()
.
Trait Implementations§
source§impl Ord for CrateInfo
impl Ord for CrateInfo
source§impl PartialEq for CrateInfo
impl PartialEq for CrateInfo
source§impl PartialOrd for CrateInfo
impl PartialOrd for CrateInfo
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for CrateInfo
impl StructuralPartialEq for CrateInfo
Auto Trait Implementations§
impl RefUnwindSafe for CrateInfo
impl Send for CrateInfo
impl Sync for CrateInfo
impl Unpin for CrateInfo
impl UnwindSafe for CrateInfo
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