# 使用 Homebrew, apk, dnf, Nix, pacman 安装 maturin

查看 maturin 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:maturin
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install maturin
```

  证据: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add maturin
```

  证据: Alpine Linux edge package indexes: maturin from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz

- dnf (92%):

```sh
sudo dnf install maturin
```

  证据: Fedora Rawhide package metadata: maturin from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#maturin
```

  证据: nixpkgs package indexes: pkgs/by-name/ma/maturin/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S maturin
```

  证据: Arch Linux sync databases: maturin from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

## 软件包事实

- **软件包键:** brew:maturin
- **软件包管理器:** Homebrew
- **版本:** 1.14.1
- **来源摘要:** Build and publish Rust crates as Python packages
- **主页:** <https://github.com/PyO3/maturin>
- **仓库:** <https://github.com/PyO3/maturin>
- **最后更新:** 2026-06-19T08:00:43Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- maturin (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 1.14.1
## 项目历史与用法

maturin is the PyO3 ecosystem's Rust-to-Python packaging tool. It builds Rust crates with PyO3, cffi, UniFFI, and binary bindings into Python wheels and source distributions, and can also publish packages to PyPI.

### 项目历史

The README identifies maturin as formerly `pyo3-pack`, and the changelog records the 0.1.0 release on 2018-08-22. A later changelog entry states that the project changed its name from pyo3-pack to maturin and added PEP 517 support.

The project evolved from a PyO3-focused wheel builder into a broader Python packaging bridge for Rust. The README documents support for Python 3.8+ wheels on Windows, Linux, macOS, and FreeBSD, plus PyPy and GraalPy support. The changelog tracks packaging-specific work such as manylinux, musllinux, auditwheel behavior, PEP 621 metadata, PEP 660 editable installs, UniFFI support, Zig-based cross compilation, and PyPI attestations.

### 采用历史

maturin's adoption followed the growth of Python packages with Rust native extensions. The README examples list prominent Rust-backed Python projects and bindings such as orjson, polars, pydantic-core, ruff, tantivy-py, watchfiles, DataFusion/Arrow bindings, and delta-rs Python bindings.

The batch input records packaging in Homebrew, Alpine, Fedora, Nix, and Arch. In practice, maturin is also commonly installed from PyPI with pip, pipx, uv, or as part of PEP 517 builds, making it both an end-user CLI and a build backend in Python packaging workflows.

### 使用方式

Common commands are `maturin new`, `maturin build`, and `maturin develop`. The README recommends `maturin build` for producing wheels under `target/wheels`, `maturin develop` for installing into the current virtualenv during development, and `uv publish` or related tooling for publication.

Configuration lives in `pyproject.toml` when projects need Python metadata, build-system configuration, `tool.maturin` options, Python source layout, binding type, compatibility settings, include rules, or PEP 621 metadata. For simple projects, the README says maturin can work with minimal extra configuration and merge metadata from Cargo.toml and pyproject.toml.

### 为什么软件包爱好者会关心

maturin is a package-nerd cornerstone because it sits exactly where Rust's Cargo model and Python's wheel/PEP ecosystem meet. It hides a lot of platform tagging, manylinux/musllinux, interpreter detection, native-library repair, metadata, and cross-compilation detail behind one command.

Its importance rose as Python projects adopted Rust for speed and safety while still needing ordinary `pip install` behavior. For distro and Homebrew maintainers, maturin is both a packaged tool and part of the build chain for other packages.

### 时间线

- 2018: Changelog records the 0.1.0 release.
- 2020: Changelog records the rename from pyo3-pack to maturin and PEP 517 support.
- 2023: GitHub release v1.0.0 is published.
- 2020s: Changelog records support for PEP 621, PEP 660, musllinux, UniFFI, Zig cross compilation, SBOMs, and PyPI attestations.

### Related projects

- maturin is closely tied to PyO3 and Python packaging standards. Neighboring tools and projects include setuptools-rust, auditwheel, cibuildwheel, uv, pipx, Cargo, PyPI, and Rust-backed Python packages such as pydantic-core, ruff, orjson, polars, and watchfiles.

### 来源

- <https://github.com/PyO3/maturin>
- <https://github.com/PyO3/maturin/releases/tag/v1.0.0>
- <https://raw.githubusercontent.com/PyO3/maturin/main/Changelog.md>
- <https://raw.githubusercontent.com/PyO3/maturin/main/README.md>
- <https://www.maturin.rs/>
- source_facts.package-manager


## 安全说明

没有找到 maturin 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。



## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: pyproject.toml
## 其他软件包管理器记录

- Nix - maturin: normalized package name match | nixpkgs package indexes: pkgs/by-name/ma/maturin/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - maturin - 1.14.1-r0: normalized package name match | Alpine Linux edge package indexes: maturin from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Build and publish crates with pyo3, rust-cpython and cffi bindings | https://github.com/PyO3/maturin
- apk - maturin-bash-completion - 1.14.1-r0: normalized package name match | Alpine Linux edge package indexes: maturin-bash-completion from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Bash completions for maturin | https://github.com/PyO3/maturin
- apk - maturin-fish-completion - 1.14.1-r0: normalized package name match | Alpine Linux edge package indexes: maturin-fish-completion from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Fish completions for maturin | https://github.com/PyO3/maturin
- apk - maturin-zsh-completion - 1.14.1-r0: normalized package name match | Alpine Linux edge package indexes: maturin-zsh-completion from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Zsh completions for maturin | https://github.com/PyO3/maturin
- apk - py3-maturin - 1.14.1-r0: normalized package name match | Alpine Linux edge package indexes: py3-maturin from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Build and publish crates with pyo3, rust-cpython and cffi bindings (python module) | https://github.com/PyO3/maturin
- apk - py3-maturin-pyc - 1.14.1-r0: normalized package name match | Alpine Linux edge package indexes: py3-maturin-pyc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Precompiled Python bytecode for py3-maturin | https://github.com/PyO3/maturin
- dnf - maturin - 1.14.1-2.fc45: normalized package name match | Fedora Rawhide package metadata: maturin from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Build and publish Rust crates as Python packages | https://github.com/PyO3/maturin
- dnf - maturin+patchelf - 1.14.1-2.fc45: normalized package name match | Fedora Rawhide package metadata: maturin+patchelf from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Metapackage for maturin: patchelf extras | https://github.com/PyO3/maturin
- pacman - maturin - 1.14.1-1: normalized package name match | Arch Linux sync databases: maturin from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Build and publish crates with pyo3, rust-cpython and cffi bindings | https://github.com/PyO3/maturin


## Combined YAML source

View the package source record on GitHub. [combined/maturin.yml](https://github.com/mxcl/pkgdb/blob/main/combined/maturin.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
