rust-bindgen
rust-bindgen copied to clipboard
Automatically generates Rust FFI bindings to C (and some C++) libraries.
This is a rather loose proposal but I'd like to start this discussion as it might provide a more straightforward way to handle issues like https://github.com/rust-lang/rust-bindgen/issues/564 and https://github.com/rust-lang/rust-bindgen/issues/1743. I've seen...
The libclang API doesn't expose enough information about the AST for what bindgen really needs, which has spawned numerous workarounds and bugs in bindgen. This PR replaces the generic libclang...
If you have two different dependencies that both depend on bindgen, but dependency A uses static linking and dependency B using dynamic linking, this will fail to build. You can...
close #2246 fix align codegen of #2240 fix align codegen of #2159 fix align codegen of #1538
Adds the option to wrap members of union where at least one is Non-Copy in `::core::mem::ManuallyDrop` instead of the generated `__BindgenUnionWrapper`, with the approriate CLI and API options (default, regex...
The performance of my hardware device is not the bottleneck: ``` CPU: i9 12900k MEM: 64GB DDR4-3200 ``` ### Input C/C++ Header ```C++ // only 4 functions and 1 type...
### Input C/C++ Header part of `MacOSX.sdk/System/Library/Frameworks/Kernel.framework/Versions/A/Headers/hfs/hfs_format.h` ```C++ #define int8_t char struct FndrOpaqueInfo { int8_t opaque[16]; } __attribute__((aligned(2), packed)); ``` ### Bindgen Invocation ``` $ bindgen has_format.h ``` ### Actual...
So I'm generating bindings to . This works pretty well, but two c macros in particular do not produce any bindings in the output. Reduced input below: ### Input C/C++...
This crate is very popular and depends by a lot of other crates, which uses the default feature set of this crate. However, by default, bindgen pulls in clap and...