Struct cargo::core::manifest::Manifest [] [src]

pub struct Manifest {
    // some fields omitted
}

Contains all the information about a package, as loaded from a Cargo.toml.

Methods

impl Manifest

fn new(summary: Summary, targets: Vec<Target>, exclude: Vec<String>, include: Vec<String>, links: Option<String>, metadata: ManifestMetadata, profiles: Profiles) -> Manifest

fn dependencies(&self) -> &[Dependency]

fn exclude(&self) -> &[String]

fn include(&self) -> &[String]

fn metadata(&self) -> &ManifestMetadata

fn name(&self) -> &str

fn package_id(&self) -> &PackageId

fn summary(&self) -> &Summary

fn targets(&self) -> &[Target]

fn version(&self) -> &Version

fn warnings(&self) -> &[String]

fn profiles(&self) -> &Profiles

fn add_warning(&mut self, s: String)

fn set_summary(&mut self, summary: Summary)

Trait Implementations

impl Encodable for Manifest

fn encode<S: Encoder>(&self, s: &mut S) -> Result<(), S::Error>

Derived Implementations

impl Debug for Manifest

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl Clone for Manifest

fn clone(&self) -> Manifest

fn clone_from(&mut self, source: &Self)