rust-ffi

Installation
SKILL.md

Binding Generation

C/C++ → Rust (bindgen)

# Auto-generate bindings
bindgen input.h \
    --output src/bindings.rs \
    --allowlist-type 'my_*' \
    --allowlist-function 'my_*'

Rust → C (cbindgen)

# Generate C header
cbindgen --crate mylib --output include/mylib.h
Installs
18
GitHub Stars
47
First Seen
Jan 31, 2026
rust-ffi — huiali/rust-skills