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 supported1 Subscribers
Add a CodeTriage badge to rust-bindgen![CodeTriage badge for rust-lang/rust-bindgen](/rust-lang/rust-bindgen/badges/users.svg?count=1)
Help out
- Issues
- Add option to generate safe and unsafe conversions for rustified enums
- Allow wrap-static-fns to be used without experimental feature
- 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`
- Add additional helpers to bitfield data structure
- bindgen generating `i64` instead of `u64`
- Idea: Support compilation/cc-rs interface
- Docs
- Rust not yet supported