Struct cargo::core::package::Package [] [src]

pub struct Package {
    // some fields omitted
}

Information about a package that is available somewhere in the file system.

A package is a Cargo.toml file plus all the files that are part of it.

Methods

impl Package

fn new(manifest: Manifest, manifest_path: &Path) -> Package

fn for_path(manifest_path: &Path, config: &Config) -> CargoResult<Package>

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

fn manifest(&self) -> &Manifest

fn manifest_path(&self) -> &Path

fn name(&self) -> &str

fn package_id(&self) -> &PackageId

fn root(&self) -> &Path

fn summary(&self) -> &Summary

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

fn version(&self) -> &Version

fn has_custom_build(&self) -> bool

fn generate_metadata(&self) -> Metadata

Trait Implementations

impl Encodable for Package

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

impl Display for Package

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

impl PartialEq for Package

fn eq(&self, other: &Package) -> bool

fn ne(&self, other: &Rhs) -> bool

impl Eq for Package

impl Hash for Package

fn hash<H: Hasher>(&self, into: &mut H)

fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher

Derived Implementations

impl Debug for Package

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

impl Clone for Package

fn clone(&self) -> Package

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