new feature: --sort-semantically flag to sort the output in a predefined
manner [(#1743)].
new feature: Bindgen::emit_warnings method to emit warnings to stderr in
build scripts.
new feature: --newtype-global-enum flag to generate enum variants as
global constants.
new feature: --default-non-copy-union-style flag to set the default style
of code used to generate unions with non-Copy members.
new feature: --bindgen-wrapper-union flag to mark any union that matches a
regex and has a non-Copy member to use a bindgen-generated wrapper for its
fields.
new feature: --manually-drop-union flag to mark any union that matches a
regex and has a non-Copy member to use ManuallyDrop.
new feature: --merge-extern-blocks flag to merge several extern blocks
that have the same ABI.
new feature: --no-size_t-is-usize flag to not bind size_t as usize.
new feature: Builder implements Clone.
Changed
clap and regex have been updated, new msrv is 1.57.
The --enable-function-attribute-detection flag is also used to detect
diverging functions so the generated bindings use ! as the return type.
The --size_t-is-usize flag is enabled by default.
Unused type aliases for <stdint.h> types are no longer emitted.
The blocklist options now can be used to block objective-C methods.
The core::ffi module is used the sized raw integer types
instead of std::os::raw if the Rust target version is 1.64 or higher and
the --use-core flag is enabled.
The bindgen CLI utility must be installed using cargo install bindgen-cli now.
Using bindgen as a library no longer pulls clap and any other CLI
related dependencies.
Fixed
Const correctness of incomplete arrays has been fixed. (#2301)
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Updates the requirements on bindgen to permit the latest version.
Changelog
Sourced from bindgen's changelog.
... (truncated)
Commits
784d3e8
bindgen-cli v0.61.0adb178a
Specify readme.4f9b970
v0.61.0142f62a
ci: clippy fixes.c424e03
Add a few missing changelog entries.2c01810
Remove no-longer-correct include entry in Cargo.toml.6f6f9fb
Move the csmith-fuzzing directory to the top level.17dd093
Handle incomplete external array constants626797b
Merge pull request #2302 from ferrous-systems/clonable-builderd241e95
Merge pull request #2299 from ferrous-systems/more-robust-postprocessingDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)