Struct cargo_make::types::CrateInfo
[−]
[src]
pub struct CrateInfo {
pub package: Option<PackageInfo>,
pub workspace: Option<Workspace>,
}Holds crate information loaded from the Cargo.toml file.
Fields
package: Option<PackageInfo>
package info
workspace: Option<Workspace>
workspace info
Methods
impl CrateInfo[src]
fn new() -> CrateInfo
Creates and returns a new instance.
fn load(logger: &Logger) -> CrateInfo
Loads the crate info based on the Cargo.toml found in the current working directory.
Arguments
logger- Logger instance
Trait Implementations
impl Debug for CrateInfo[src]
impl Clone for CrateInfo[src]
fn clone(&self) -> CrateInfo
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more