PyO3

maturin

PyO3

Build and publish crates with pyo3, cffi and uniffi bindings as well as rust binaries as python packages

AI 简介

Maturin 是一个用于构建和发布带有 pyo3、cffi 和 uniffi 绑定的 Rust 项目以及将 Rust 二进制文件打包为 Python 包的工具。它支持在 Windows、Linux、macOS 和 FreeBSD 上为 Python 3.8+ 构建 wheel,并可以上传到 PyPI,同时提供了基本的 PyPy 和 GraalPy 支持。Maturin 的核心功能包括创建新的 Cargo 项目、构建 wheel 以及直接安装为 Python 模块进行开发,且无需额外配置文件即可与现有 setuptools-rust 配置兼容。该工具适用于需要将高性能 Rust 代码集成到 Python 项目中的开发者,特别是在跨平台环境下进行开发时。

Rust
Apache License 2.0
5.6k
Stars
411
Forks
32
Watchers
36
Issues

Star 增长

今日+2
近 7 天+12
近 30 天+61
综合评分79.94
默认分支main