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 Since the header file generated has 15000+ lines, I won't copy it here, you can find the repository [Arduino-IRremote](https://github.com/Arduino-IRremote/Arduino-IRremote) ### Bindgen Invocation ```Rust fn configure_bindgen_for_arduino(config: &Config)...

Template type in tagged union should not be copiable field as it requires ManuallyDrop. Filter out copy derive when the variable is resolved to template type. Fix: #2157 Now the...

We often see code like this: ```C++ struct JSJitInfo { // ... union { uint16_t protoID; js::jit::InlinableNative inlinableNative; }; // ... }; ``` which generates members and types like `__bindgen_anon_1:...

enhancement

Extracted from https://github.com/rust-lang/rust-bindgen/pull/2369 for easier review. Also apply `#[allow(unused_variables)]` everywhere to show nicer argument names in docs.

### Input C/C++ Header ```C++ #pragma once #include #include #include namespace hello { template struct Array final { using iterator = T *; using size_type = std::size_t; void fill(const T...

When using bitfields in clippy warns that the transmute in the new, setter and getter are useless. I don't know if it is a false positive from clippy or if...

I made a little wrapper header using `_Bool` to avoid having to include `stdbool.h` since I was being lazy and didn't want to exclude a few symbols. It translated the...

> This looks like a good improvement in any case. Maybe let's file a follow-up to moving to target-lexicon? _Originally posted by @emilio in https://github.com/rust-lang/rust-bindgen/pull/2808#pullrequestreview-2018360188_

As mentioned in #2638, this contains Dockerfiles to run bindgen-tests against clang versions 13-18 using Ubuntu 22.04 The included dockerfiles/README.md explains the usage of the Dockerfiles. @pvdrz Let me know...

### Input C/C++ Header ```C++ #include // or any other std header void func1(); ``` ### Bindgen Invocation ``` $ bindgen input.h --blocklist-item "std::.*" -- -x c++ ``` ### Actual...

A-templates
A-C++