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

Add prettyplease feature to bindgen-cli #2789

Closed jschwe closed 3 months ago

jschwe commented 3 months ago

The bindgen documentation explictly mentions being able to use --formatter=prettyplease, but currently the prettyplease feature has no way to be enabled. Enable it by default, since the documentation also doesn't mention needing to cargo install with a feature.

Documentation: https://rust-lang.github.io/rust-bindgen/code-formatting.html

pvdrz commented 3 months ago

thanks! could you document this change in the changelog?

jschwe commented 3 months ago

Sure - added an entry to the changelog.