rust-ffi
CommunityInterop-safe Rust FFI patterns.
Authorvanyastaff
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill provides guidelines for Foreign Function Interface (FFI) with C/C++, including safe invocation patterns and transparent exposure of Rust APIs.
Core Features & Use Cases
- Calling C from Rust: extern blocks and safe wrappers.
- Exposing Rust to C: safe, documented extern "C" entry points.
- Memory & ABI: repr(C), opaque types, and safe ownership transfers.
- Use Case: Create a small Rust library that can be consumed by a C app.
Quick Start
Implement a safe_strlen wrapper around an unsafe C strlen and expose a minimal extern "C" function.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: rust-ffi Download link: https://github.com/vanyastaff/paramdef/archive/main.zip#rust-ffi Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.