
SystemsGuide
Calling C From Rust With Extern and Bindgen Step by Step
Rust calls C through extern declarations that you write or generate. bindgen reads a header and produces them, leaving you to wrap the unsafe calls in a safe API.
17 min read
Tag
1 post

Rust calls C through extern declarations that you write or generate. bindgen reads a header and produces them, leaving you to wrap the unsafe calls in a safe API.