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

Feature request for generating bindings with the `C-unwind` ABI for generated functions and function pointers. I'd love for this to be supported both via the bindgen Rust API and CLI....

Addresses issue: https://github.com/rust-lang/rust-bindgen/issues/1375 * Adds `generated_name_override` callback to the `ParseCallbacks` trait. * Callback is invoked for each function name (after other name-related logic). * Added test to verify. This PR...

It would be useful if bindgen printed a warning when allowlist_function, allowlist_type, allowlist_var and allowlist_file resulted in no symbols being matched. I know you can't always predict how *many* symbols...

### Input C/C++ Header `#include `, found in gcc 10.0+, see [link](https://github.com/gcc-mirror/gcc/blob/master/libstdc%2B%2B-v3/libsupc%2B%2B/compare): ```C++ namespace std _GLIBCXX_VISIBILITY(default) { // [cmp.categories], comparison category types namespace __cmp_cat { using type = signed char;...

We currently use bindgen 0.59.1 for our very large codebase (~1-2 million lines of C). The other day, we switched all of our C code from using `__attribute__((...))` syntax to...

### Input C/C++ Header ```C++ class RAK_DLL_EXPORT RakPeer : public RakPeerInterface, public RNS2EventHandler { public: /// \brief Sends a block of data to the specified system that you are connected...

In #1671, there is a reasonable argument made that a principled mapping between `size_t` and `usize` is improper. However, all platforms that i'm aware of do equate the two. bindgen's...

Resolves #1755 by wrapping the regexes provided to a `RegexSet` in a capture group, so the added anchors work properly with alternation. This doesn't resolve the issue of implicit/hidden regex...

S-awaiting-review

### Input C/C++ Header ```C # Taken from include/uapi/linux/virtio_net.h struct virtio_net_ctrl_mac { __virtio32 entries; __u8 macs[][ETH_ALEN]; } __attribute__((packed)); ``` ### Bindgen Invocation ``` # Bindgen version: 0.46.0 $ bindgen include/linux/virtio_net.h...

enhancement
help wanted

### Input C/C++ Header I'm sorry, I have *absolutely no idea* how to go about minimizing this. (However, the linked headers have no system dependencies, at least.) ### Bindgen Invocation...

bug
A-libclang