Struct maturin::CargoToml[][src]

pub struct CargoToml { /* fields omitted */ }

Extract of the Cargo.toml that can be reused for the python metadata

See https://doc.rust-lang.org/cargo/reference/manifest.html for a specification

Implementations

impl CargoToml[src]

pub fn from_path(manifest_file: impl AsRef<Path>) -> Result<Self>[src]

Reads and parses the Cargo.toml at the given location

pub fn scripts(&self) -> HashMap<String, String>[src]

Returns the python entrypoints

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

Returns the trove classifiers

pub fn remaining_core_metadata(&self) -> RemainingCoreMetadata[src]

Returns the value of [project.metadata.maturin] or an empty stub

Trait Implementations

impl Clone for CargoToml[src]

impl Debug for CargoToml[src]

impl<'de> Deserialize<'de> for CargoToml[src]

impl Eq for CargoToml[src]

impl PartialEq<CargoToml> for CargoToml[src]

impl Serialize for CargoToml[src]

impl StructuralEq for CargoToml[src]

impl StructuralPartialEq for CargoToml[src]

Auto Trait Implementations

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

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

impl<T> Instrument for T[src]

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

impl<T> Same<T> for T

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>,