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

Consider this type from Linux: ```C struct bpf_prog { ... /* Instructions for interpreter */ union { DECLARE_FLEX_ARRAY(struct sock_filter, insns); DECLARE_FLEX_ARRAY(struct bpf_insn, insnsi); }; }; ``` This generates: ```rust #[repr(C)]...

rust-for-linux

I encountered a situation where a C API evolved from using a simple struct `FooV1` to a bitfield struct `FooV2`. This change requires different access patterns for the `a` field,...

This input: ```c++ namespace { template < typename _CharT, typename = _CharT > class basic_ostream; template < typename, typename > class basic_ios { }; template < typename _CharT, typename _Traits...

bug

If a type is not documented, but a type alias with the same canonical path is, then generate the documentation of the type alias onto the type, since otherwise it...

Hi! I'm trying to use `new_bitfield_N` in a static. Is there a reason that the generated constructor isn't const? ``` error[E0015]: cannot call non-const fn `security_configuration::new_bitfield_1` in statics --> src/app_impl.rs:135:22...

I'm using bindgen to generate un4seen's BASS lib binding. Here is my build.rs: ```rust let bindings = bindgen::Builder::default() // The input header we would like to generate // bindings for....

If we have a struct declaration with a typedef and the same name, the comment is not generated on the Rust binding. ```c /** * This is a forward declared...

Use `str::lines()` to split the doc comment into one `#[doc]` block per comment line. Note: The diff is large, but it's all just the test expectations for the comments being...

I've already reported this to Gentoo, only for it to get closed as a bindgen specific issue so I'm reporting this here now: Firefox's servo style crate fails to rebuild...

I'm working on using Bindgen 0.71.1 to add Rust bindings for a library with several hundred header files. The library [makes extensive use of `atomic`s](https://github.com/rust-lang/rust-bindgen/issues/2151) (which I know Bindgen won't...