You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Restore prettyplease feature gate to bindgen library crate (#2537)
This is a partial revert of these two PRs:
- #2491
- #2505
Allow formatting of generated bindings and the inclusion of the
`prettyplease` dependency to be optional when depending on bindgen as a
library.
`prettyplease` remains required and enabled by bindgen-cli.
In a project I maintain, `bindgen` is used in a build script to generate
bindings for a native C library. Those bindings are written to `OUT_DIR`
and are `include!`'d into the crate sources; these bindings don't need
to be formatted.
See for additional context:
- #2491 (comment)
- #2491 (comment)
- #2491 (comment)
I tested all of the following locally:
```shell
cd bindgen
cargo check
cargo check --no-default-features
cargo check --no-default-features --features prettyplease
```
The CI steps added in #2506 should be sufficient
for maintaining the correctness of these conditional compilation features.
0 commit comments