rust-bindgen
rust-bindgen copied to clipboard
Automatically generates Rust FFI bindings to C (and some C++) libraries.
### Input C/C++ Header ```C struct msg { unsigned int tag; unsigned int len; char payload[]; }; ``` ### Bindgen Invocation ``` $ bindgen input.h ``` ### Actual Results This...
### Input C/C++ Header ```C typedef struct { int m_rc; unsigned m_cs_sz:16; unsigned m_other:8; unsigned m_tag:8; } lean_object; static inline _Atomic(int) * lean_get_rc_mt_addr(lean_object* o) { return (_Atomic(int)*)(&(o->m_rc)); } ``` This...
hello could you write in the docummentation or give me example how to use method dynamic_library_name to be able to include libloading after generating wrapper? ### Input C/C++ Header ```C++...
NOTE: I know this can use some cleanups and more documentation / comments, etc. but for now I'm just uploading it as an RFC to see if you like the...
Hi all, While trying to update the bindings for a crate from using v0.66.1 to v0.69.4, I get a problem for `loongarch64-unknown-linux-gnu`. ### Input C/C++ Header The header is quite...
https://github.com/rust-lang/rust-bindgen/issues/2853
This fixes a broken link and adds 2 missing entries.
I'm really not sure where to go with this one - is it a cargo issue? a bindgen issue? an issue with my local setup? If it's the last, I'm...