Claude-skill-registry ffi-pyo3-maturin

Build or modify the Rust↔Python FFI using PyO3+maturin. Use for binding builds, smoke tests, and boundary validation workflow.

install
source · Clone the upstream repo
git clone https://github.com/majiayu000/claude-skill-registry
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/data/ffi-pyo3-maturin" ~/.claude/skills/majiayu000-claude-skill-registry-ffi-pyo3-maturin && rm -rf "$T"
manifest: skills/data/ffi-pyo3-maturin/SKILL.md
source content

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.