pub struct PyProjectToml {
    pub tool: Option<Tool>,
    /* private fields */
}
Expand description

A pyproject.toml as specified in PEP 517

Fields

tool: Option<Tool>

PEP 518: The [tool] table is where any tool related to your Python project, not just build tools, can have users specify configuration data as long as they use a sub-table within [tool], e.g. the flit tool would store its configuration in [tool.flit].

We use it for [tool.maturin]

Implementations

Returns the contents of a pyproject.toml with a [build-system] entry or an error

Does no specific error handling because it’s only used to check whether or not to build source distributions

Returns the value of [tool.maturin.sdist-include] in pyproject.toml

Returns the value of [tool.maturin.bindings] in pyproject.toml

Returns the value of [tool.maturin.cargo-extra-args] in pyproject.toml

Returns the value of [tool.maturin.compatibility] in pyproject.toml

Returns the value of [tool.maturin.rustc-extra-args] in pyproject.toml

Returns the value of [tool.maturin.skip-auditwheel] in pyproject.toml

Returns the value of [tool.maturin.strip] in pyproject.toml

Returns the value of [tool.maturin.manifest-path] in pyproject.toml

Having a pyproject.toml without a version constraint is a bad idea because at some point we’ll have to do breaking changes and then source distributions would break

Returns true if the pyproject.toml has the constraint

Having a pyproject.toml without build-backend set to maturin may result in build errors when build from source distribution

Returns true if the pyproject.toml has build-backend set to maturin

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

The resulting type after dereferencing.

Dereferences the value.

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.