rust-bindgen
rust-bindgen copied to clipboard
Automatically generates Rust FFI bindings to C (and some C++) libraries.
### Input C/C++ Header test.h ```C #define LOWPRIORITY ((unsigned short) 0xffff) ``` ### Bindgen Invocation ``` $ bindgen test.h ``` ### Actual Results ``` /* automatically generated by rust-bindgen 0.69.2...
this is my attempt at #2657 example use case: this allowed me to build a library that discovers the bindings (for composite type) generated by bindgen (https://github.com/mxyns/bindgen-bridge) i tried to...
Hi, Sorry if I'm missing something but there doesn't seem to be a way to override the integer type of a constified enum module. I tried the naive approach of...
`actions-rs` is archived and will stop working at some point when GitHub switches to node 16 for runners. A better option would be to switch to dtolany/rust-toolchain, or just use...
These options allow specifying an alternate type to use where pointer types would otherwise be used. This is useful for binding to a WebAssembly guest, as well as for certain...
`CStr` literals (`c"Hello, world!"`) and raw literals (`cr"Hello, World!"`) are supported as of https://github.com/rust-lang/rust/pull/117472 and will be stabilized in ~1month. Would it be possible to add an option to emit...
### Input C/C++ Header ```C void (*(*xDlSym)(const char *))(void); ``` ### Bindgen Invocation ``` $ bindgen input.h ``` ### Actual Results ```rust /* automatically generated by rust-bindgen 0.69.1 */ extern...
I'm not sure if it should be reported here though. ### Input C/C++ Header ### Bindgen Invocation ```Rust use bindgen::CargoCallbacks; // ^^^^^^^^^^^^^^ bindgen::Builder::default() .header("input.h") .parse_callbacks(Box::new(CargoCallbacks::new())) .generate() .unwrap() ``` ### Actual...