Struct maturin::PyProjectToml [−][src]
pub struct PyProjectToml {
pub tool: Option<Tool>,
// some fields omitted
}
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
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
type Target = ProjectToml
type Target = ProjectToml
The resulting type after dereferencing.
fn 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
Auto Trait Implementations
impl RefUnwindSafe for PyProjectToml
impl Send for PyProjectToml
impl Sync for PyProjectToml
impl Unpin for PyProjectToml
impl UnwindSafe for PyProjectToml
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
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