pub struct TomlManifest { /* private fields */ }
Expand description
This type is used to deserialize Cargo.toml
files.
Implementations
sourceimpl TomlManifest
impl TomlManifest
sourcepub fn prepare_for_publish(
&self,
ws: &Workspace<'_>,
package_root: &Path
) -> CargoResult<TomlManifest>
pub fn prepare_for_publish(
&self,
ws: &Workspace<'_>,
package_root: &Path
) -> CargoResult<TomlManifest>
Prepares the manifest for publishing.
pub fn to_real_manifest(
me: &Rc<TomlManifest>,
source_id: SourceId,
package_root: &Path,
config: &Config
) -> CargoResult<(Manifest, Vec<PathBuf>)>
pub fn has_profiles(&self) -> bool
pub fn features(&self) -> Option<&BTreeMap<InternedString, Vec<InternedString>>>
Trait Implementations
sourceimpl Debug for TomlManifest
impl Debug for TomlManifest
sourceimpl<'de> Deserialize<'de> for TomlManifest
impl<'de> Deserialize<'de> for TomlManifest
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Serialize for TomlManifest
impl Serialize for TomlManifest
Auto Trait Implementations
impl RefUnwindSafe for TomlManifest
impl Send for TomlManifest
impl Sync for TomlManifest
impl Unpin for TomlManifest
impl UnwindSafe for TomlManifest
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more