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: StringThe name, as defined in Cargo.toml.
version: VersionThe 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 build-info-build has the dependencies feature enabled.
Trait Implementations§
source§impl Ord for CrateInfo
impl Ord for CrateInfo
source§impl PartialEq<CrateInfo> for CrateInfo
impl PartialEq<CrateInfo> for CrateInfo
source§impl PartialOrd<CrateInfo> for CrateInfo
impl PartialOrd<CrateInfo> 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 more