rust-bindgen icon indicating copy to clipboard operation
rust-bindgen copied to clipboard

UINTMAX64 can never be generated

Open jbaublitz opened this issue 1 year ago • 2 comments

Hi @emilio, while working on the fix for the case that wasn't handled in #2779, I noticed that bindgen can't support generating bindings for UINTMAX64. This is largely because all integers eventually get represented as an i64 so i64::MAX is the upper limit for u64 too. Is there any interest in a PR to support differentiating between u64 and i64 so that UINTMAX64 can be represented in bindgen?

jbaublitz avatar Apr 29 '24 14:04 jbaublitz

:wave:

Right now, bindgen depends on cexpr to process object-like #define directives. AFAIK, that crate is abandoned and hasn't received any updates in 3 years. There's some ongoing work on migrating bindgen to cmacro which should handle such cases correctly.

pvdrz avatar May 09 '24 17:05 pvdrz

Okay, is the work under control right now? I'm happy to help out, but if it's already in progress that's fine.

jbaublitz avatar May 13 '24 15:05 jbaublitz