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

pub struct Manifest { /* fields omitted */ }

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

Implementations

impl Manifest[src]

pub fn new(
    summary: Summary,
    targets: Vec<Target>,
    exclude: Vec<String>,
    include: Vec<String>,
    links: Option<String>,
    metadata: ManifestMetadata,
    custom_metadata: Option<Value>,
    profiles: Profiles,
    publish: Option<Vec<String>>,
    publish_lockfile: bool,
    replace: Vec<(PackageIdSpec, Dependency)>,
    patch: HashMap<Url, Vec<Dependency>>,
    workspace: WorkspaceConfig,
    features: Features,
    edition: Edition,
    im_a_teapot: Option<bool>,
    default_run: Option<String>,
    original: Rc<TomlManifest>,
    metabuild: Option<Vec<String>>
) -> Manifest
[src]

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

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

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

pub fn metadata(&self) -> &ManifestMetadata[src]

pub fn name(&self) -> InternedString[src]

pub fn package_id(&self) -> PackageId[src]

pub fn summary(&self) -> &Summary[src]

pub fn summary_mut(&mut self) -> &mut Summary[src]

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

pub fn targets_mut(&mut self) -> &mut [Target][src]

pub fn version(&self) -> &Version[src]

pub fn warnings_mut(&mut self) -> &mut Warnings[src]

pub fn warnings(&self) -> &Warnings[src]

pub fn profiles(&self) -> &Profiles[src]

pub fn publish(&self) -> &Option<Vec<String>>[src]

pub fn replace(&self) -> &[(PackageIdSpec, Dependency)][src]

pub fn original(&self) -> &TomlManifest[src]

pub fn patch(&self) -> &HashMap<Url, Vec<Dependency>>[src]

pub fn workspace_config(&self) -> &WorkspaceConfig[src]

pub fn features(&self) -> &Features[src]

pub fn map_source(
    self,
    to_replace: SourceId,
    replace_with: SourceId
) -> Manifest
[src]

pub fn feature_gate(&self) -> CargoResult<()>[src]

pub fn print_teapot(&self, config: &Config)[src]

pub fn edition(&self) -> Edition[src]

pub fn custom_metadata(&self) -> Option<&Value>[src]

pub fn default_run(&self) -> Option<&str>[src]

pub fn metabuild(&self) -> Option<&Vec<String>>[src]

pub fn metabuild_path(&self, target_dir: Filesystem) -> PathBuf[src]

Trait Implementations

impl Clone for Manifest[src]

impl Debug for Manifest[src]

Auto Trait Implementations

impl !RefUnwindSafe for Manifest

impl !Send for Manifest

impl !Sync for Manifest

impl Unpin for Manifest

impl !UnwindSafe for Manifest

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T[src]

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]