Rust Ffi

Design an FFI boundary meant to last — a thin translation layer with the logic in core crates, no panic across the boundary, explicit ownership on every pointer, repr(transparent) newtypes, and unsafe extern in edition 2024. Use when designing or reviewing a Rust FFI surface, when exposing a Rust library to another language, when a DLL or shared library keeps state, or when the user asks how to shape an extern function.

rewrite-rs c739733 2 files · 5.1 KB Updated

File contents

rewrite-rs/skills/tree/main/skills/misc/rust-ffi commit c739733826

Frequently asked questions

npx skillmds@latest add rewrite-rs/rust-ffi