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
[src]
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 authors(&self) -> &Vec<String>
fn publish(&self) -> bool
fn has_custom_build(&self) -> bool
fn generate_metadata(&self) -> Metadata
fn find_closest_target(&self, target: &str, kind: TargetKind) -> Option<&Target>
Trait Implementations
impl Debug for Package
[src]
impl Clone for Package
[src]
fn clone(&self) -> Package
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
impl Encodable for Package
[src]
impl Display for Package
[src]
impl PartialEq for Package
[src]
fn eq(&self, other: &Package) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.
impl Eq for Package
[src]
impl Hash for Package
[src]
fn hash<H: Hasher>(&self, into: &mut H)
Feeds this value into the state given, updating the hasher as necessary.
fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher
1.3.0
Feeds a slice of this type into the state provided.