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

I think case insensitivity (`unicode-case`) was useful: `--allowlist-item '(?i)(aaa|bbb).*'` used to work for e.g. `AAA_CONST`, and `bbb_func()` Now it (silently 😲) matches nothing. As a workaround, it looks like for...

While they have a good chance of avoiding namespace collisions, numbered anonymous types are decidedly not very readable. ![image](https://github.com/rust-lang/rust-bindgen/assets/1305080/f609af79-b830-4391-b6ed-c8f31a0cda01) It would be nice if bindgen could use the field name...

C libraries commonly (ab)use defines to represent compilation constants. Therefore, the Doxygen documentation of these defines can contain valuable information and should be kept by bindgen, but alas it currently...

C and C++ commonly use `snake_case` type names, so the `non_camel_case_types` default rustc lint generates a lot of noise in bindgen-originated modules. There should at least be an easy way...

C libraries are not always very careful about documenting their safety requirements. But unsafe rust functions are expected to document in which circumstances they are safe to use. To resolve...

We have a pointer type to an opaque type in our FFI project. Bindgen generates this definition for the opaque type: ```rs #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct SEXPREC {...

`rustdoc` treats the first paragraph of an item's description as a brief description to be used in higher level docs (module item list, etc). Historically, Doxygen has required use of...

Fixes https://github.com/rust-lang/rust-bindgen/issues/2556. Previously, headers included with `-include` were not added to the `includes` map since they don't have a source file. This is now fixed. Also, some wrong match arms...

Sorry, I don't have reproduction steps, but I will point out the issue as precisely as I can. This issue does NOT happen with `package.edition=2021` This issue does happen with...

This allows to register functional macros for which a wrapper function will be generated. Currently it is not possible to call functional macros at all. This makes it possible. Macros...