Using Rust from C... or Any Language
summary
Rust code compiles into a C-callable library and the claim is that production FFI is doable and safer than C++ after a year of work on Skylight where Ruby pieces and a daemon move to Rust and the daemon runs as 8MB stable processes. Practical tools: extern "C" signatures, opaque pointers treated as void for non‑numeric types, boxing/borrowing rules, and runtime checks via small ownership macros. Expect to catch panics at the boundary and document ownership rather than rely on prose.
AI-written summary · about
chapters (16)
- 0:00Introduction
- 0:50What is Rust
- 2:57Skylight
- 13:45Ownership
- 14:15Trace ID
- 15:38Shared Type
- 16:54Trace Object
- 18:10Example
- 19:30Portability
- 20:19Wrapping
- 20:39The Boring Part
- 21:44The Example
- 23:38Ampersands
- 25:56The Right Way
- 26:34Optional Step
- 28:24Things I didnt cover








