esp-idf-sys icon indicating copy to clipboard operation
esp-idf-sys copied to clipboard

When generating bindings for custom components, allow users to provide a denylist of symbols which should not be generated

Open ivmarkov opened this issue 1 year ago • 2 comments

See here for more details: https://github.com/esp-rs/esp-idf-sys/issues/318

ivmarkov avatar Mar 09 '23 16:03 ivmarkov

This is probably not feasible, as, without the bindings_module parameter set, the same bindgen instance that generates the main esp-idf bindings will also generate those of the extra components. And to my knowledge, there is no way to exclude symbols of specific C headers.

N3xed avatar Mar 09 '23 19:03 N3xed

Yeah, but then having a global denylist would be just as good, as we are not trying to prevent collisions between the components and esp idf, but rather, between C code and Rust.

ivmarkov avatar Mar 09 '23 19:03 ivmarkov