Struct cargo::core::manifest::Manifest [−][src]
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]
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
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 links(&self) -> Option<&str>
[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]
self,
to_replace: SourceId,
replace_with: SourceId
) -> Manifest
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
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
[src]
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src]
V: MultiLane<T>,