Skip to content

Commit c8d5699

Browse files
authored
update CHANGELOG.md (rust-lang#2298)
1 parent 63bf643 commit c8d5699

File tree

1 file changed

+29
-2
lines changed

1 file changed

+29
-2
lines changed

CHANGELOG.md

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,11 +143,38 @@
143143

144144
## Added
145145

146-
* new feature: `--sort-semantically` flag to sort the output in a predefined manner [(#1743)]
146+
* new feature: `--sort-semantically` flag to sort the output in a predefined
147+
manner [(#1743)].
148+
* new feature: `Bindgen::emit_warnings` method to emit warnings to stderr in
149+
build scripts.
150+
* new feature: `--newtype-global-enum` flag to generate enum variants as
151+
global constants.
152+
* new feature: `--default-non-copy-union-style` flag to set the default style
153+
of code used to generate unions with non-`Copy` members.
154+
* new feature: `--bindgen-wrapper-union` flag to mark any union that matches a
155+
regex and has a non-Copy member to use a bindgen-generated wrapper for its
156+
fields.
157+
* new feature: `--manually-drop-union` flag to mark any union that matches a
158+
regex and has a non-`Copy` member to use `ManuallyDrop`.
159+
* new feature: `--merge-extern-blocks` flag to merge several `extern` blocks
160+
that have the same ABI.
161+
* new feature: `--no-size_t-is-usize` flag to not bind `size_t` as `usize`.
147162

148163
## Changed
149164

150-
* clap has been updated, new msrv is 1.57.
165+
* clap and regex have been updated, new msrv is 1.57.
166+
* The `--enable-function-attribute-detection` flag is also used to detect
167+
diverging functions so the generated bindings use `!` as the return type.
168+
* The `--size_t-is-usize` flag is enabled by default.
169+
* Unused type aliases for `<stdint.h>` types are no longer emitted.
170+
* The `blocklist` options now can be used to block objective-C methods.
171+
* The `core::ffi` module is used the sized raw integer types
172+
instead of `std::os::raw` if the Rust target version is `1.64` or higher and
173+
the `--use-core` flag is enabled.
174+
* The `bindgen` CLI utility must be installed using `cargo install
175+
bindgen-cli` now.
176+
* Using `bindgen` as a library no longer pulls clap and any other CLI
177+
related dependencies.
151178

152179
## Removed
153180

0 commit comments

Comments
 (0)