LogoClawIndex
案例技能关于
LogoClawIndex

pyo3-maturin-bindings - 使用 PyO3 与 maturin 构建 Rust 的 Python 绑定

提供使用 PyO3 和 maturin 为 Rust 库创建、构建、测试、调试及发布 Python 绑定的指导。

标签

更新于: 2026-09-13

能力

典型输入

典型输出

该技能可以做什么

  • 向 Python 暴露 Rust 类型
  • 注册 PyO3 模块
  • 转换 Rust 与 Python 类型
  • 处理跨边界 FFI 异常
  • 管理 GIL 与内存安全
  • 使用 maturin 构建 wheel

输入

  • Rust 库源代码
  • Cargo.toml 配置文件
  • pyproject.toml 配置文件

输出

  • Python 扩展模块
  • Python wheel 软件包

要求

  • PyO3 crate
  • maturin 构建工具
  • Python 运行环境
  • pytest 测试框架

来源

  • 规范: SKILL.md

ClawIndex

OpenClaw Skills 与 Use Case 索引

ClawIndex 是一个生态驱动的 OpenClaw Skills 与真实 Use Case 索引站。

索引

Skills·
Cases

Meta

关于·
声明·
邮箱·
GitHub
© 2026 ClawIndex 保留所有权利。
rust
python
pyo3
maturin
ffi
向 Python 暴露 Rust 类型
注册 PyO3 模块
转换 Rust 与 Python 类型
处理跨边界 FFI 异常
Rust 库源代码
Cargo.toml 配置文件
pyproject.toml 配置文件
Python 扩展模块
Python wheel 软件包