-
Notifications
You must be signed in to change notification settings - Fork 0
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
chore(deps): update rust crate bindgen to 0.71 #15
base: master
Are you sure you want to change the base?
Conversation
⚠ Artifact update problemRenovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is. ♻ Renovate will retry this branch, including artifacts, only when one of the following happens:
The artifact failure details are included below: File name: bindings/Cargo.lock
|
60e770a
to
1d13502
Compare
1d13502
to
0f280d6
Compare
0f280d6
to
ab12935
Compare
ab12935
to
6c90a2a
Compare
6c90a2a
to
105ae8c
Compare
105ae8c
to
903b618
Compare
903b618
to
fe53211
Compare
fe53211
to
1619d0b
Compare
|
1619d0b
to
a462b93
Compare
a462b93
to
7f7e899
Compare
This PR contains the following updates:
0.60
->0.71
Release Notes
rust-lang/rust-bindgen (bindgen)
v0.71.0
Compare Source
Added
ParseCallbacks::new_item_found
callback to expose the original and final name of structs, unions and enums (#2658).field_type_name
field toFieldInfo
to expose the name of the type of a field (#2863)--with-attribute-custom
flag (#2866)--rust-target
to any Rust version supported by bindgen (#2993)--generate-cstr
flag is used for Rust targets after 1.77 under the 2021 edition (#2996)--rust-edition
flag which allows to select which Rust edition to target. (#3002, #3013)unsafe extern
instead ofextern
in blocks for any Rust target after 1.82. (#3015)Changed
--wrap-static-fns
related options no longer require the experimental feature or flag (#2928)Display
implementation instead of theDebug
one forBindgenError
inbindgen-cli
(#3005)Removed
Fixed
libloading
are now wrapped inunsafe
blocks when using dynamic loading (#2961)ParseCallbacks::field_visibility
callback is now called for newtypes as well (#2967)addr_of
andaddr_of_mut
macros under the 1.51 rust version (#2988)v0.70.1
Compare Source
Added
Changed
Removed
Fixed
const
layout tests were triggering theunnecessary_operation
andidentity_op
clippy warnings.Security
v0.70.0
Compare Source
Added
Changed
bindgen-cli
errors to stderr instead of stdout (#2840)Removed
Fixed
--formatter=prettyplease
not working inbindgen-cli
by addingprettyplease
feature andenabling it by default for
bindgen-cli
(#2789) .--allowlist-item
so anonymous enums are no longer ignored (#2827).f64::INFINITY
,f64::NEG_ INFINITY
,f64::NAN
(#2854).Security
tempfile
andrustix
due to GHSA-c827-hfw6-qwvm.v0.69.5
Compare Source
Install bindgen-cli 0.69.5
Install prebuilt binaries via shell script
Download bindgen-cli 0.69.5
v0.69.4
Compare Source
Added
Changed
Removed
Fixed
Security
v0.69.3
Compare Source
Added
Changed
Removed
Fixed
Security
v0.69.2
Compare Source
Added
Changed
Removed
Fixed
Security
v0.69.1
Compare Source
Fixed
bindgen -v
without an input header argument.v0.69.0
Compare Source
Added
ParseCallbacks::header_file
callback which runs on every filename passed toBuilder::header
.CargoCallbacks::new
constructor which emits a cargo-rerun linefor every input header file by default.
CargoCallbacks::rerun_on_header_files
method to configure whethera cargo-rerun line should be emitted for every input header file.
Changed
--wrap-static-fns
feature was updated so function types that has noargument use
void
as its sole argument.CargoCallbacks
is no longer a unit-likestruct and the
CargoCallbacks
constant was added to mitigate the breaking nature of thischange. This constant has been marked as deprecated and users will have to
use the new
CargoCallbacks::new
method in the future.Removed
Fixed
bindgen-cli
with a static libclang.as the target's pointer size.
Self
,self
,crate
orsuper
.Security
v0.68.1
Compare Source
Fixed
v0.68.0
Compare Source
Added
system
ABI is now supported as an option for the--override-abi
flag.allowlist_item
method and the--allowlist-item
flag have beenincluded to filter items regardless or their kind.
Changed
Clone
implementation for_BindgenUnionField
has been changed to passthe
incorrect_clone_impl_on_copy_type
Clippy lint.c_unwind
ABI can be used without a feature gate for any Rust target versionequal to or greater than 1.71.
This comes as a result of the ABI being stabilised (in Rust 1.71).
prettyplease version.
CStr
constants when using the--generate-cstr
option.
Removed
extra_assert
andextra_assert_eq
macros are no longer exported.Fixed
Rust keyword that cannot be a raw identifier, such as:
self
,crate
,super
orSelf
.v0.66.1
Compare Source
Removed
v0.66.0
Compare Source
Added
--generate-cstr
CLI flag to generate string constants as&CStr
instead of
&[u8]
. (Requires Rust 1.59 or higher.)--generate-shell-completions
CLI flag to generate completions fordifferent shells.
--wrap-static-fns
option can now wrapva_list
functions as variadic functionswith the experimental
ParseCallbacks::wrap_as_variadic_fn
method.ParseCallbacks::field_visibility
method to modify field visibility.Changed
&[u8; SIZE]
)instead of arrays (
[u8; SIZE]
) to match UTF-8 strings.void
no longer contain areturn
statement and only call the static function instead.
--wrap-static-fns
option no longer emits wrappers for static variadicfunctions.
--depfile
orBuilder::depfile
will now properlygenerate module names and paths that include spaces by escaping them. To make
the escaping clear and consistent, backslashes are also escaped.
bitflags
dependency to 2.2.1. This changes the API ofCodegenConfig
.feature when depending on
bindgen
as a library.auto-generated
_bindgen_*
names having a different index.always public. Now, they follow the default visibility for the type they are
in.
bitfield unit field and its related functions now have their visibility
determined based on the most private between the default visibility and the
actual visibility of the bitfields within the unit.
Removed
Remove redundant Cargo features, which were all implicit:
env_logger
andlog
removed in favor oflogging
log
removed in favor oflogging
which
removed in favor ofwhich-logging
annotate-snippets
removed in favor ofexperimental
Prettyplease is available as a
Formatter
variant now.v0.65.1
Compare Source
Fixed
Builder::rustfmt_bindings
method was added back and tagged asdeprecated instead of being removed.
v0.65.0
Compare Source
Added
Builder::default_visibility
method and the--default-visibility
flag to set the default visibility of fields. (#2338)--formatter
CLI flag with the valuesnone
,rustfmt
andprettyplease
to select which tool will be used to format the bindings. Thedefault value is
rustfmt
. (#2453)Builder::formatter
method and theFormatter
type to selectwhich tool will be used to format the bindings. (#2453)
Builder::emit_diagnostics
method and the--emit-diagnostics
flag to enable emission of diagnostic messages under the
experimental
feature. (#2436)
"efiapi"
calling convention (#2490).ParseCallbacks::read_env_var
method which runs everytimebindgen
reads and environment variable. (#2400)ParseCallbacks::generated_link_name_override
method which allowoverriding the link name of items. (#2425)
enum
s when generating code while using the--wrap-static-fns
feature. (#2415)Changed
void
as their single argumentinstead of having no arguments when the
--wrap-static-fns
flag is used.(#2443)
--wrap-static-fns
flag is enabled nowcontains
#include
directives with all the input headers and all the sourcecode added with the
header_contents
method. (#2447)--wrap-static-fns
flag no longer usesasm
labeling and the link name of static wrapper functions is allowed tobe mangled. (#2448)
type
aliases now matches the commentsof their
typedef
counterparts instead of using the comments of the aliasedtypes. (#2463)
Builder::rustfmt_bindings
methods and the--no-rustfmt-bindings
flagare now deprecated in favor of the formatter API. (#2453)
Removed
--use-msvc-mangling
,--rustfmt-bindings
and--size_t-is-usize
. (#2408)Bindings::emit_warnings
andBindings::warnings
methods were removedin favor of
--emit-diagnostics
. (#2436)byte slices. (#2487)
v0.64.0
Compare Source
Added
--with-derive-custom
,--with-derive-custom-struct
,--with-derive-custom-enum
and--with-derive-custom-enum
to add custom derives from the CLI.--experimental
flag onbindgen-cli
and theexperimental
feature on
bindgen
to gate experimental features whose implementation isincomplete or are prone to change in a non-backwards compatible manner.
--wrap-static-fns
,--wrap-static-fns-suffix
and--wrap-static-fns-path
to generate C function wrappers for
static
orstatic inline
functions.This feature is experimental.
Changed
enum
and atypedef
with the samename.
ParseCallbacks::generated_name_override
method now receivesItemInfo<'_>
asargument instead of a
&str
.clang-sys
crate version to 1.4.0 to support clang 15.void
.clap
dependency forbindgen-cli
to 4.bindgen-cli
argument parser which could introduce unexpectedbehavior changes.
ParseCallbacks::add_derives
method now receivesDeriveInfo<'_>
asargument instead of a
&str
. This type also includes the kind of target type.v0.63.0
Compare Source
Added
process_comments
method to theParseCallbacks
trait tohandle source code comments.
Changed
--wrap_unsafe_ops
option is enabled.
name: &str
argument forParseCallbacks::add_derives
byinfo: DeriveInfo
.1.30
are being deprecated andwill be removed in the future. If you have a good reason to use any of these
targets, please report it in the issue tracker.
Removed
removed:
whitelist_recursively
,hide_type
,blacklist_type
,blacklist_function
,blacklist_item
,whitelisted_type
,whitelist_type
,whitelist_function
,whitelisted_function
,whitelist_var
,whitelisted_var
,unstable_rust
.v0.62.0
Compare Source
Added
--override-abi
flag to override the ABI used by functionsmatching a regular expression.
C-unwind
ABI in--override-abi
on nightlyrust.
Changed
a|b
) is handled correctly butwildcard patterns (
*
) are now considered invalid. The.*
pattern can beused as a replacement.
ParseCallbacks
trait does not require to implementUnwindSafe
.Builder::parse_callbacks
method no longer overwrites previously addedcallbacks and composes them in a last-to-first manner.
is wrapped in unsafe blocks now.
Fixed
v0.61.0
Compare Source
Released 2022/10/16
Added
--sort-semantically
flag to sort the output in a predefinedmanner (#1743).
Bindgen::emit_warnings
method to emit warnings to stderr inbuild scripts.
--newtype-global-enum
flag to generate enum variants asglobal constants.
--default-non-copy-union-style
flag to set the default styleof code used to generate unions with non-
Copy
members.--bindgen-wrapper-union
flag to mark any union that matches aregex and has a non-Copy member to use a bindgen-generated wrapper for its
fields.
--manually-drop-union
flag to mark any union that matches aregex and has a non-
Copy
member to useManuallyDrop
.--merge-extern-blocks
flag to merge severalextern
blocksthat have the same ABI.
--no-size_t-is-usize
flag to not bindsize_t
asusize
.Builder
implementsClone
.Changed
--enable-function-attribute-detection
flag is also used to detectdiverging functions so the generated bindings use
!
as the return type.--size_t-is-usize
flag is enabled by default.<stdint.h>
types are no longer emitted.blocklist
options now can be used to block objective-C methods.core::ffi
module is used the sized raw integer typesinstead of
std::os::raw
if the Rust target version is1.64
or higher andthe
--use-core
flag is enabled.bindgen
CLI utility must be installed usingcargo install bindgen-cli
now.bindgen
as a library no longer pulls clap and any other CLIrelated dependencies.
Fixed
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.