Skip to main content

rust-c-ffi-safety

Stars14
Forks0
UpdatedJune 18, 2026 at 10:43

Use when writing, reviewing, or generating Rust code that calls C (or C that is called from Rust) over FFI โ€” extern "C" declarations, unsafe wrappers, pointer/struct marshaling, or the C side of a Rust binding. Enforces the 26 FFI soundness rules so foreign data and pointers are validated against Rust's safety invariants.

Installation

Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.

File Explorer
2 files
SKILL.md
readonly