rust-lang / rust-bindgen

Automatically generates Rust FFI bindings to C (and some C++) libraries.
https://rust-lang.github.io/rust-bindgen/
BSD 3-Clause "New" or "Revised" License
4.23k stars 679 forks source link

Change `Callbacks` API. #2766

Open reitermarkus opened 4 months ago

reitermarkus commented 4 months ago

Extracted from https://github.com/rust-lang/rust-bindgen/pull/2369 for easier review.

Also apply #[allow(unused_variables)] everywhere to show nicer argument names in docs.

reitermarkus commented 4 months ago

@emilio, changed the code to skip non-UTF-8 items instead of crashing.

reitermarkus commented 3 months ago

@emilio, can you have a look here again? Thanks.

bors-servo commented 2 months ago

:umbrella: The latest upstream changes (presumably 770abd9699a520ebc27b3fe4dd010a577179b494) made this pull request unmergeable. Please resolve the merge conflicts.

reitermarkus commented 1 month ago

@emilio, please have another look here.