rust-bindgen icon indicating copy to clipboard operation
rust-bindgen copied to clipboard

Automatically generates Rust FFI bindings to C (and some C++) libraries.

Results 460 rust-bindgen issues
Sort by recently updated
recently updated
newest added

I understand that getting the correct integer type from `#define` is very difficult, however using UINT64_C should clarify to bindgen that it's a 64-bit integer. Currently the macro parser fails...

Add utilities to rename, change case, and fix Rust code generated from the C headers. `Renamer` implements a bindgen callback trait. It handles struct/enum/typedef type renames with a `string->string` hashmap....

If I run the following code with bindgen version `0.71.1` (latest as of this moment): ```rust fn main() { let code = r" typedef enum MyEnum { MyEnumVariantA, MyEnumVariantB, }...

I recently ran into an issue on a repo that has rustc pinned to 1.81 with a rust-toolchain.toml file because of a regression in 1.82. bindgen on that repo was...

Currently, there is no way to blocklist anonymous enums, which is inconvenient if you want to avoid `_bindgen_tyXX` types appearing in the public API. Note: I'm not 100% sure if...

Invoking bindgen with `--with-derive-custom-struct .*=Foo` does not add `#[derive(Foo)]` to `__BindgenBitfieldUnit`. I'd like all structs (& unions) to be marked with the derive macro, as it only implements the trait...

rust-for-linux

I am working on a rust wrapper for a c library and there is one place I have to go and manually edit the bindgen file after generation. The problem...

## Bug I am using a large C++ library which makes heavy use of virtual functions and virtual destructor. I am using bindgen's vtable generation which miss virtual destructors on...

Forward references to `enum` types end up generating the wrong type for the `enum`. For instance: ```c enum E; enum E { A }; ``` generates: ```rust pub const E_A:...

bug
I-bogus-codegen
A-enums
rust-for-linux

Since vectors are defined with type aliases they have an incorrect alignment. For example this has an alignment of 8 ```c typedef float float2 __attribute__((vector_size(2 * sizeof(float)))); ``` The generated...