rust-ffi
✓FFI 跨语言互操作专家。处理 C/C++ 互操作、bindgen、PyO3、Java JNI、内存布局、数据转换等问题。触发词:FFI, C, C++, bindgen, cbindgen, PyO3, jni, extern, libc, CString, CStr, 跨语言, 互操作, 绑定
Installation
SKILL.md
| i32 | int | 通常匹配 | | i64 | long long | 跨平台注意 | | usize | uintptrt | 指针大小 | | const T | const T | 只读 | | mut T | T | 可写 | | &CStr | const char | UTF-8 保证 | | CString | char | 所有权转移 | | NonNull | T | 非空指针 |
| C 分配,Rust 使用 | C | 不要 free | | Rust 分配,C 使用 | Rust | 传指针,C 用完通知 Rust | | 共享缓冲区 | 协商 | 文档说明 |
| 字符串编码错误 | 乱码 | 用 CStr/CString | | 生命周期不匹配 | use-after-free | 明确所有权 | | 跨线程传递非 Send | 数据竞争 | Arc + 锁 | | 胖指针传 C | 内存损坏 | 扁平化数据 | | 忘记 #[nomangle] | 符号找不到 | 明确导出 |
Facts (cite-ready)
Stable fields and commands for AI/search citations.
- Install command
npx skills add https://github.com/huiali/rust-skills --skill rust-ffi- Source
- huiali/rust-skills
- Category
- </>Dev Tools
- Verified
- ✓
- First Seen
- 2026-02-01
- Updated
- 2026-02-18
Quick answers
What is rust-ffi?
FFI 跨语言互操作专家。处理 C/C++ 互操作、bindgen、PyO3、Java JNI、内存布局、数据转换等问题。触发词:FFI, C, C++, bindgen, cbindgen, PyO3, jni, extern, libc, CString, CStr, 跨语言, 互操作, 绑定 Source: huiali/rust-skills.
How do I install rust-ffi?
Open your terminal or command line tool (Terminal, iTerm, Windows Terminal, etc.) Copy and run this command: npx skills add https://github.com/huiali/rust-skills --skill rust-ffi Once installed, the skill will be automatically configured in your AI coding environment and ready to use in Claude Code or Cursor
Where is the source repository?
https://github.com/huiali/rust-skills
Details
- Category
- </>Dev Tools
- Source
- skills.sh
- First Seen
- 2026-02-01