Type object
File match maturin.toml
Schema URL https://catalog.lintel.tools/schemas/schemastore/maturin/latest.json
Source https://www.schemastore.org/maturin.json

Validate with Lintel

npx @lintel/lintel check
Type: object

The [tool.maturin] section of a pyproject.toml

Properties

all-features boolean | null

Activate all available features

auditwheel AuditWheelMode | null

Audit wheel mode

bindings string | null

Bindings type

compatibility PlatformTag | null

Platform compatibility

config array | null

Override a configuration value (unstable)

data string | null

Path to the wheel directory, defaults to <module_name>.data

exclude array | null

Exclude files matching the given glob pattern(s)

features array | null

List of features to activate. Each entry can be a plain feature name string, or a conditional object with feature and python-version keys.

frozen boolean | null

Require Cargo.lock and cache are up to date

include array | null

Include files matching the given glob pattern(s)

locked boolean | null

Require Cargo.lock is up to date

manifest-path string | null

Path to Cargo.toml

module-name string | null

Module name, accepts setuptools style import name like foo.bar

no-default-features boolean | null

Do not activate the default feature

profile string | null

Build artifacts with the specified Cargo profile

python-packages array | null

Python packages to include

python-source string | null

The directory with python module, contains <module_name>/__init__.py

rustc-args array | null

Additional rustc arguments

sdist-generator

Source distribution generator

Default: "cargo"
All of: SdistGenerator string | string
skip-auditwheel boolean

Skip audit wheel

Default: false
strip boolean

Strip the final binary

Default: false
target Record<string, object>

Target configuration

Default:
{}
targets array | null

Cargo compile targets

unstable-flags array | null

Unstable (nightly-only) flags to Cargo, see 'cargo -Z help' for details

Definitions

AuditWheelMode string | string | string

Auditwheel mode

CargoCrateType string | string | string | string | string | string

Supported cargo crate types

CargoTarget object

Cargo compile target

name string required

Name as given in the Cargo.toml or generated from the file name

kind CargoCrateType | null

Kind of target ("bin", "cdylib")

FeatureSpec string | object

A cargo feature specification that can be either a plain feature name or a conditional feature that is only enabled for certain Python versions.

Examples

[tool.maturin]
features = [
  "some-feature",
  { feature = "pyo3/abi3-py311", python-version = ">=3.11" },
  { feature = "pyo3/abi3-py38", python-version = "<3.11" },
]
Format string | string

The target format for the include or exclude [GlobPattern].

See [Formats].

Formats Format[]

A single [Format] or multiple [Format] values for a [GlobPattern].

GlobPattern string | object

A glob pattern for the include and exclude configuration.

See [PyProjectToml::include] and [PyProject::exclude].

Based on https://python-poetry.org/docs/pyproject/#include-and-exclude.

PlatformTag object | object | string

Decides how to handle manylinux and musllinux compliance

SdistGenerator string | string

Source distribution generator

TargetConfig object

Target configuration

macos-deployment-target string | null

macOS deployment target version