rust-unsafe - Rust Unsafe Code and FFI Expert
Handle Rust unsafe code, raw pointers, FFI, and memory layout with safety
Tags
Updated: 2026-03-19Capabilities
Typical Inputs
Typical Outputs
What this skill does
- write unsafe code
- declare extern functions
- use raw pointers
- call C functions
- cast pointer types
- transmute types
- define unions
- specify memory layout
- wrap FFI calls
- add SAFETY comments
- validate pointer alignment
- check null pointers
- handle MaybeUninit
- use NonNull pointers
- avoid data races
Inputs
- Rust source files
- C library headers
- FFI documentation
Outputs
- Safe Rust wrappers
- SAFETY comments
- FFI bindings
- Verified unsafe code
Requirements
- Rust compiler
- libc crate
- Miri (optional)
- bindgen (optional)
- cbindgen (optional)
