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

### Input C/C++ Header ```C++ #define POSITIVE_INFINITE (1.0/0.0) #define NEGATIVE_INFINITE (-1.0/0.0) ``` ### Actual Results ``` pub const POSITIVE_INFINITE: f64 = ::std::f64::INFINITY; pub const NEGATIVE_INFINITE: f64 = ::std::f64::NEG_INFINITY; ``` ###...

Rust for Linux, so far, has pinned the Rust compiler and `bindgen` versions. The kernel is looking into expanding that support to several versions, i.e. establishing a minimum supported version,...

rust-for-linux

As the title suggests, I've bisected 0.69 as introducing an issue where bindgen is constantly rebuilt during the build process. Or maybe the code that bindgen generates. This was found...

Currently, there is no way of enabling [rustified_non_exhaustive_enum](https://docs.rs/bindgen/latest/bindgen/struct.Builder.html#method.rustified_non_exhaustive_enum) from the CLI as opposed to the library

Hello folks, We noticed that for AArch64 Linux, va_list was being translated to a type that was not FFI-safe. Whilst we aren't aware of any cases where va_list would be...

All versions of LLVM 18 have a bug where the `__prefetch` intrinsic has the wrong definition. This bug was fixed in https://github.com/llvm/llvm-project/pull/93235, but will not be released until LLVM 19...

Hello, I'm trying to make binding for LightGBM through their [c_api.h](https://github.com/microsoft/LightGBM/blob/master/include/LightGBM/c_api.h) (inspired by [lightgbm3-rs](https://github.com/Mottl/lightgbm3-rs) which have the same [issue](https://github.com/Mottl/lightgbm3-rs/issues/5)). Building the bindings works as expected, but building the tests results...

### Input C/C++ Header I was unable to correctly minimize a header, however here are the dumped pre-processed inputs: https://gist.github.com/lovesegfault/bc38d2d09c679c6df0b3d63468bf8735 ### Bindgen Invocation ```Rust bindgen::Builder::default() .header_contents("wrapper.h", "#include") .generate_comments(true) .layout_tests(true) .parse_callbacks(Box::new(bindgen::CargoCallbacks))...

bug

Just following [the tut](https://rust-lang.github.io/rust-bindgen/tutorial-4.html) and notice no tests at the `cargo test` stage? There was when I ran `bindgen` by hand like so: ```bash $ bindgen --allowlist-function "sentrypeer_config_new|sentrypeer_config_destroy" \ conf.h...

In my case, I want to make a field private and wrap it behind an accessor function that makes the field `unsafe` to access. I need the field's type in...