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 supported4 Subscribers
Add a CodeTriage badge to rust-bindgen
Help out
- Issues
- SVE `__SVInt32_t` parameters become a zero-sized opaque; rustc drops the argument
- GNU integer `_Complex` panics in `build_builtin_ty` (`Non floating-type complex`)
- `extern __mfp8` stack-overflows while parsing the variable (function form becomes `u8`)
- objc_direct methods are emitted as msg_send! instead of a direct C call
- C++20 `char8_t[N]` panics (`Not able to resolve array element?: Recurse`); scalar `char8_t` is `u8`
- `aarch64_vector_pcs` function pointers become a zero-sized opaque; rustc drops the argument
- `_Accum` globals and constants panic (`CXType_Accum` fails the var.rs Auto/Unexposed assert)
- File-scope `.symver` is ignored, so generated bindings call the default symbol version
- ObjC ARC `__weak` struct fields are passed by value (`Copy`) instead of the hidden-pointer ABI
- C++20 `enum class : char8_t` enumerators are signed `i8` (`-1` instead of `255`)
- Docs
- Rust not yet supported