Struct cargo::core::manifest::Manifest
[−]
[src]
pub struct Manifest { /* fields omitted */ }
Contains all the information about a package, as loaded from a Cargo.toml.
Methods
impl Manifest
[src]
fn new(
summary: Summary,
targets: Vec<Target>,
exclude: Vec<String>,
include: Vec<String>,
links: Option<String>,
metadata: ManifestMetadata,
profiles: Profiles,
publish: bool,
replace: Vec<(PackageIdSpec, Dependency)>,
workspace: WorkspaceConfig
) -> Manifest
summary: Summary,
targets: Vec<Target>,
exclude: Vec<String>,
include: Vec<String>,
links: Option<String>,
metadata: ManifestMetadata,
profiles: Profiles,
publish: bool,
replace: Vec<(PackageIdSpec, Dependency)>,
workspace: WorkspaceConfig
) -> 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 publish(&self) -> bool
fn replace(&self) -> &[(PackageIdSpec, Dependency)]
fn links(&self) -> Option<&str>
fn workspace_config(&self) -> &WorkspaceConfig
fn add_warning(&mut self, s: String)
fn set_summary(&mut self, summary: Summary)
fn map_source(self, to_replace: &SourceId, replace_with: &SourceId) -> Manifest
Trait Implementations
impl Clone for Manifest
[src]
fn clone(&self) -> Manifest
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