rust-ffi-bindings
Installation
SKILL.md
Rust FFI & Bindings Skill
This skill provides guidance on creating safe, stable, and ergonomic Foreign Function Interface (FFI) bindings for Rust libraries.
When to use this skill
- Creating C API exports from Rust
- Building C# / .NET bindings
- Implementing Python bindings (PyO3)
- Creating WebAssembly bindings
- Using UniFFI for multi-language bindings (Kotlin, Swift, Python, Ruby)
- Exposing Rust functionality to other languages
- Managing memory across language boundaries
Core Principles
1. Safety at the Boundary
Rule: All FFI functions must validate inputs and handle panics.