Skip to content

Add workflow to check features #2506

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Apr 17, 2023
Merged

Conversation

pvdrz
Copy link
Contributor

@pvdrz pvdrz commented Apr 17, 2023

No description provided.

@pvdrz pvdrz marked this pull request as ready for review April 17, 2023 20:02
@pvdrz pvdrz merged commit e6a9d70 into rust-lang:main Apr 17, 2023
@pvdrz pvdrz deleted the check-cfg branch April 17, 2023 20:15
pvdrz pushed a commit that referenced this pull request Jun 2, 2023
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant