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 [project.name] in pyproject.toml

Returns the values of [tool.maturin] in pyproject.toml

👎Deprecated since 0.14.0: please use PyProjectToml::include (https://github.com/PyO3/maturin/pulls/1255)

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

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

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

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

Returns the value of [tool.maturin.compatibility] 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.python-source] in pyproject.toml

Returns the value of [tool.maturin.data] 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
The number of items that this chain link consists of.
Append the elements in this link to the chain.
An iterator over the items within this container, by value.
Iterate over the elements of the container (using internal iteration because GATs are unstable).

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

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

The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
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.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more