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 418 rust-bindgen issues
Sort by recently updated
recently updated
newest added

### Input C/C++ Header ```C typedef int uint32_t; struct foo { uint32_t a; }; ``` ### Bindgen Invocation ```Rust bindgen::Builder::default() .header("test.h") .parse_callbacks(Box::new(bindgen::CargoCallbacks)) .allowlist_type("foo") .allowlist_recursively(false) .generate() .expect("bindgen failure").write_to_file("test.rs").unwrap(); ``` ### Actual...

bug
A-derive

https://github.com/intelxed/xed has a bunch of inline functions as part of its interface. In order to make the xed bindings usable (https://github.com/valarauca/xed-sys/issues/1) we need to export them somehow. If bindgen could...

enhancement
help wanted

This PR adds the ability to blocklist Objective-C methods using --blocklist-item. The path format that's matched against is `ItemPath:: rustMethodName`. The Rust method name is used over the Objective-C name,...

### Input C/C++ Header ```C++ #include struct Foo { size_t data; }; struct Bar { size_t data; ~Bar() { data = 0; } }; Foo MakeFoo(); // { return Foo();...

bug
I-ABI-bug
A-C++

### Input C/C++ Header ```C struct globals { _Atomic _Bool interrupted; }; ``` ### Bindgen Invocation ``` $ bindgen input.h ``` ### Actual Results In general, these get translated into...

bug
help wanted

I 'm developing a [rust binding library](https://github.com/Danielmelody/ispc-texcomp-rs) from c, but I encountered a problem making me confused. As you can see, those generated types and constants which is not used...

literal strings in C preprocessor definitions are translated to static character arrays by bindgen e.g. #define kOfxImageEffectPluginApi "OfxImageEffectPluginAPI" becomes on my linux system: pub const kOfxImageEffectPluginApi: &'static [u8; 24] =...

### Input C/C++ Header I have no idea what causes the issue, and so I can't narrow it down, and also I'm not even sure if it's related to the...

When `bindgen` says: ``` error: linker `cc` not found | = note: No such file or directory (os error 2) ``` I thought I could specify an environment variable `CC=/usr/bin/cc`...

### Input C/C++ Header ```C++ template< class T, class P > class CCallResult : private CCallbackBase { public: typedef void (T::*func_t)( P*, bool ); CCallResult(); ~CCallResult(); void Set( SteamAPICall_t hAPICall,...