Maturin
maturin.rs
- Free plan
- Windows
- macOS
- Linux
What Maturin is
Maturin is free software for turning Rust projects into Python packages. It builds and publishes Rust crates with Python bindings, as well as Rust binaries packaged for Python. Supported binding approaches include PyO3, cffi, UniFFI and binary bindings. Maturin builds wheels for Python 3.8 and later, with basic PyPy and GraalPy support. The workflow centers on `maturin new` for creating a configured Cargo project, `maturin build` for producing wheels in `target/wheels`, and `maturin develop` for installing a module in the active virtual environment. The faster develop command does not cover every feature available through building and installing. Maturin can create source distributions with `pyproject.toml` and `--sdist`, then upload packages to PyPI. Installation options include binaries, pipx, uv and pip. Wheel building supports Windows, Linux, macOS and FreeBSD.
Who it suits
Maturin suits Rust developers packaging native code for Python across major desktop operating systems. It is useful for projects needing wheel builds, PyPI publishing or generated CI workflows.
Good to know, and what to watch
- Supports PyO3, cffi and UniFFI
- Builds wheels for Python 3.8+
- Creates projects, wheels and development installs
- Can publish packages to PyPI
- Apache 2.0 or MIT licensing
- Develop mode lacks every build feature
- cffi and binary bindings require configuration
- Linux wheels may need manylinux or zig
- Only basic PyPy and GraalPy support
The verdict
Maturin covers the main path from Rust crate to Python package, including wheel creation and publishing. Its free, cross-platform tooling is strongest when developers understand the differences between development installs and full builds.
What the maker publishes
- Bindings
- It supports PyO3, cffi, UniFFI, and binary bindings. source
- Bindings limitation
- For cffi and binary projects, the `bindings` setting is required because Maturin cannot automatically detect those bindings. source
- Build commands
- Its main commands are `maturin new` to create a configured Cargo project, `maturin build` to build wheels, and `maturin develop` to build and install a module in the current virtual environment. source
- Build workflow
- The `maturin build` command builds wheels into `target/wheels` by default and does not upload them. source
- CI integration
- The `maturin generate-ci` command can generate a GitHub Actions workflow for building and publishing release artifacts. source
- Development limit
- The guide notes that `maturin develop` is faster but does not support every feature available when installing after `maturin build`. source
- Development workflow
- The `maturin develop` command builds a crate and installs it as a Python module in the current virtual environment. source
- Installation
- The guide lists binary downloads, pipx, uv, and pip as installation options. source
- Integrations
- The guide describes integration with tox and recommends using uv to publish packages with `uv publish`. source
- License
- Maturin is licensed under either Apache License 2.0 or MIT, at the user's option. source
- Linux compatibility
- For widely usable Linux wheels, the guide says to use a manylinux Docker image or build with zig; Maturin checks generated libraries and assigns wheel platform tags. source
- Linux wheel compatibility
- For widely usable Linux wheels on PyPI, the guide says to use a manylinux Docker image or build with zig. source
- Operating systems
- The guide lists Windows, Linux, macOS, and FreeBSD as supported wheel-building platforms. source
- Package publishing
- Maturin can upload built packages to PyPI. source
- Packaging
- Maturin can build source distributions when configured through `pyproject.toml` and invoked with `--sdist`. source
- Platform releases
- Downloadable binaries are built for Windows, Linux, and macOS, with listed architectures including x86, ARM, and PowerPC variants. source
- Publishing
- The guide says Maturin can upload packages to PyPI and recommends `uv publish` for publishing packages built with `maturin build`. source
- Purpose
- Maturin builds and publishes Rust crates with Python bindings, as well as Rust binaries, as Python packages. source
- Python interpreters
- Maturin has basic PyPy and GraalPy support. source
- Python support
- The guide says Maturin supports building wheels for Python 3.8 and later, with basic PyPy and GraalPy support. source
- Security and compliance
- The guide describes manylinux compatibility checks for Linux wheels; no security certification or compliance program is stated on the pages reviewed. source
- Supported Python versions
- Maturin supports building wheels for Python 3.8 and later. source
- Trusted publishing
- Generated GitHub Actions workflows can use PyPI trusted publishing with OpenID Connect instead of an API token. source
Checked against the maker's pages on 7 Oct 2026.