new feature: --override-abi flag to override the ABI used by functions
matching a regular expression.
new feature: allow using the C-unwind ABI in --override-abi on nightly
rust.
Changed
Regex inputs are sanitized so alternation (a|b) is handled correctly but
wildcard patterns (*) are now considered invalid.
the ParseCallbackstrait does not require to implement UnwindSafe.
the Builder::parse_callbacks method no longer overwrites previously added
callbacks and composes them in a last-to-first manner.
any generated rust code containing unsafe operations inside unsafe functions
is wrapped in unsafe blocks now.
Fixed
Various issues with upcoming clang/libclang versions have been fixed.
0.61.0
Released 2022/10/16
Added
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.
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
c09bd2f
v0.62.0678daf5
document regex arguments handling (#2345)4574d76
Document and test allowlisting and blocklisting methods (#2344)67dfa7e
Fix duplicated function names (#2341)db4ea32
Handle theconst struct *
andstruct *
patterns (#2304)ed3aa90
Fix inline function identificationc03b376
ir: Don't crash with built-in unexposed types from libclang.0631a27
Fix clippy warnings (#2336)e8ffb42
Wrapunsafe
function's bodies inunsafe
blocks (#2266)bae6170
Clean the implementation ofDefault
forBindgenOptions
(#2332)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)