Emilio Cobos Álvarez

Results 777 comments of Emilio Cobos Álvarez

The expected way to do this is `--allowlist-function 'CompressBlocks.*'`, then it will only generate the types used from those functions, does that not work?

Well, it's hard to automatically know what you want to consider unused vs. not. For example there are lots of functions in C that take ints but expect some sort...

Can you elaborate what use cases do you envision for this? And why are they not addressable for example if you use `parse_quote!` on the output of bindgen?

Yeah this seems unlikely to be related to bindgen, bindgen intentionally doesn't mess with anything compiler-related, just generates code. That said, maybe the `CargoCallbacks` are causing trouble? That'd be a...

Hmm, yeah, this is a bit tricky. Part of the issue here is that they're not quite the same, ABI wise. An `AtomicBool` is a struct with ``#[repr(C)]`, while I'm...

https://github.com/rust-lang/rust-bindgen/pull/2153 deals with the crash. What to do with atomics more generally needs more nuance.

Hard to say without a test-case, but `cargo check` shouldn't re-run the `build.rs` file if their inputs haven't changed.

Do you have a full stack by any chance?

This seems ok if tests pass, sorry for missing it. I can try to rebase and merge if you don't have the cycles to do it.

Err, sorry, should've read the PR message more carefully. Rather than modifying the tokens, would it be reasonable to pass the tokens to `will_parse_macro` (without modifying them)?