maturin: Build and publish crates with pyo3, rust-cpython and cffi bindings as well as rust binaries as Python packages

2021-11-23 14:19:39 +08:00
 messense

GitHub: https://github.com/PyO3/maturin User Guide: https://maturin.rs

之前 /t/816053 想做的使用 PyPI 分发二进制文件的事情,使用 Rust 就很简单:

$ maturin build --release -b bin

举个例子: https://github.com/messense/auditwheel-symbols ,PyPI 地址: https://pypi.org/project/auditwheel-symbols/

GitHub Actions 上可以比较方便地构建 manylinux/musllinux 兼容的 wheel: https://github.com/messense/maturin-action

1644 次点击
所在节点    Python
1 条回复
Vcide
191 天前
正在学习使用楼主开发的 PyO3 和 Maturin 来开发 Python 包,上手很顺滑

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/817388

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX