|
143 | 143 |
|
144 | 144 | ## Added
|
145 | 145 |
|
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`. |
147 | 162 |
|
148 | 163 | ## Changed
|
149 | 164 |
|
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. |
151 | 178 |
|
152 | 179 | ## Removed
|
153 | 180 |
|
|
0 commit comments