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 collect_dependencies(true) was called on build_script().
Trait Implementations§
Source§impl Ord for CrateInfo
impl Ord for CrateInfo
Source§impl PartialOrd for CrateInfo
impl PartialOrd for CrateInfo
impl Eq for CrateInfo
impl StructuralPartialEq for CrateInfo
Auto Trait Implementations§
impl Freeze for CrateInfo
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