Build or modify the Rust↔Python FFI using PyO3+maturin. Use for binding builds, smoke tests, and boundary validation workflow.
Scanned 2/12/2026
Install via CLI
openskills install majiayu000/claude-skill-registry---
name: ffi-pyo3-maturin
description: Build or modify the Rust↔Python FFI using PyO3+maturin. Use for binding builds, smoke tests, and boundary validation workflow.
---
# PyO3 + maturin FFI Workflow
## Build
- `cd packages/python_viterbo && uv run maturin develop --manifest-path ../rust_viterbo/Cargo.toml`
## Test
- `cd packages/python_viterbo && uv run pytest -q tests/smoke`
## Contract and expectations
- See: `packages/rust_viterbo/docs/ffi-contract.md`
- Keep wrappers thin and convert types near the boundary.
- Validate inputs at the boundary, return structured errors.
- Avoid breaking Python-facing APIs without coordination.
No comments yet. Be the first to comment!