rust-bindgen
https://github.com/rust-lang/rust-bindgen
Rust
Automatically generates Rust FFI bindings to C (and some C++) libraries.
Triage Issues!
When you volunteer to triage issues, you'll receive an email each day with a link to an open issue that needs help in this project. You'll also receive instructions on how to triage issues.
Triage Docs!
Receive a documented method or class from your favorite GitHub repos in your inbox every day. If you're really pro, receive undocumented methods or classes and supercharge your commit history.
Rust not yet supported2 Subscribers
Add a CodeTriage badge to rust-bindgen
Help out
- Issues
- Generate `std::ffi::*` instead of the `std::os::raw::*` types
- Support `import_name` and `import_module` attributes when targeting `wasm32`
- Add support for config files
- Add option to generate safe and unsafe conversions for rustified enums
- Generate `unsafe extern` blocks (Edition 2024)
- Wrap the array representation of opaque types in a #[repr(C)] struct
- Bindings for define statements using scientific notation
- Incorrect field offset when C struct is __attribute__((packed, aligned(8)))
- Windows keeps using MSVC, even when `CC` and `CXX` are set explicitly and empty `PATH`
- Idea: Support compilation/cc-rs interface
- Docs
- Rust not yet supported