| 1 |
## 0.25.0 |
| 2 |
|
| 3 |
* Re-release of yanked 0.24.6 as a major release |
| 4 |
* Update MSRV to 1.57 |
| 5 |
* Support variadic arguments (`...`) (#805) |
| 6 |
* Add --depfile option (#820) |
| 7 |
* Breaking changes: The `Config` struct now has a private member. |
| 8 |
|
| 9 |
## 0.24.6 (YANKED: depfile option was breaking, see #841) |
| 10 |
|
| 11 |
* Update MSRV to 1.57 |
| 12 |
* Support variadic arguments (`...`) (#805) |
| 13 |
* Add --depfile option (#820) |
| 14 |
|
| 15 |
## 0.24.5 |
| 16 |
|
| 17 |
* Don't enforce tempfile version. |
| 18 |
|
| 19 |
## 0.24.4 |
| 20 |
|
| 21 |
* Move expand infinite recursion fix (#799) |
| 22 |
* Add with_cpp_compat to the builder (#796) |
| 23 |
* Handle never type in return position consistently (#780) |
| 24 |
* Fix warnings (#816, #819) |
| 25 |
* Updated documentation (#788, #791, #792, #810, #823) |
| 26 |
|
| 27 |
## 0.24.3 |
| 28 |
|
| 29 |
* Make struct expressions correctly generated through typedefs (#768). |
| 30 |
|
| 31 |
## 0.24.2 |
| 32 |
|
| 33 |
* Make bitfield operators use explicit constructors. |
| 34 |
|
| 35 |
## 0.24.1 |
| 36 |
|
| 37 |
* Add support for unary negation (#765). |
| 38 |
* Make more bitfield operators constexpr (#765). |
| 39 |
|
| 40 |
## 0.24.0 |
| 41 |
|
| 42 |
* Basic const generic support (#759, #760 #762). |
| 43 |
* Suffixes on integer literals are now honored to avoid narrowing (#764). |
| 44 |
|
| 45 |
## 0.23.0 |
| 46 |
|
| 47 |
* Better support for constexpr. (#756) |
| 48 |
* constexpr is now enabled by default in C++ mode. You can use const.allow_constexpr=false to revert to previous behavior. (#756) |
| 49 |
* Minimum syn version no longer parses old rust code. (#754) |
| 50 |
|
| 51 |
## 0.22.0 |
| 52 |
|
| 53 |
* Support rename rule for union body members (#751). |
| 54 |
* constant: Add support for associated constant expressions (#752). |
| 55 |
* Fix regression in CamelCase rename rule (should be lowerCamelCase) (#750). |
| 56 |
* enumeration: simplify standard types in variants (#749). |
| 57 |
* Avoid generating and writing bindings when called recursively (#747). |
| 58 |
* Cython: Omit per-variant tags in unions generated for Rust enums (#748). |
| 59 |
* Update various dependencies. |
| 60 |
|
| 61 |
## 0.21.0 |
| 62 |
|
| 63 |
* Update MSRV to 1.54.0 |
| 64 |
* Update clap to 3.1. |
| 65 |
* Update heck to 0.4.0 |
| 66 |
* unraw identifiers |
| 67 |
* Honor documentation_length in Cython. |
| 68 |
* Add documentation_style to with short and full options |
| 69 |
* Map RawFd to Int |
| 70 |
* Respect remove_underscores config when prefixing name to enum |
| 71 |
|
| 72 |
## 0.20.0 |
| 73 |
|
| 74 |
* Add Builder::with_using_namespaces. (#688) |
| 75 |
* Ignore PhantomPinned. (#695) |
| 76 |
* Simplify Pin<T> to T. (#697) |
| 77 |
* Update --pretty=expanded to -Zunpretty=expanded. (#706) |
| 78 |
|
| 79 |
## 0.19.0 |
| 80 |
|
| 81 |
* Simplify types in generics (#663) |
| 82 |
* Use --profile=check for macro expansion (#671) |
| 83 |
* Use exported name to prefix enum variants (#672) |
| 84 |
* Fix path attribute handling in inline submodules (#679) |
| 85 |
* Fix a stack overflow with some recursive typedefs (#680) |
| 86 |
|
| 87 |
## 0.18.0 |
| 88 |
|
| 89 |
* Simplify types in nested types such as pointed-to types and function signatures (#661) |
| 90 |
|
| 91 |
## 0.17.0 |
| 92 |
|
| 93 |
* Add with_parse_extra_bindings to builder. (#645) |
| 94 |
* Support NonZero and fix incorrect simplification of Option<ptr> into ptr. (#647) |
| 95 |
* Deal with name conflicts correctly in declaration type resolution. (#651) |
| 96 |
* Support pointers to ZSTs. (#656) |
| 97 |
|
| 98 |
## 0.16.0 |
| 99 |
|
| 100 |
* Remove artificial restriction on lifetime parameters on enums (#604) |
| 101 |
* Add an option for converting usize/isize into size_t/ptrdiff_t. (#606) |
| 102 |
* Allow controlling the cargo profile used for expansion. (#607) |
| 103 |
* Support wider range of expressions in enum discriminants (#614) |
| 104 |
* Support generation of Cython bindings (#590) |
| 105 |
* Fixed some issues with style=tag and recursive structs (#615) |
| 106 |
* Default C style to Both (as specified in docs) (#615) |
| 107 |
* Fix resolution of path dependencies from certain modules. (#629) |
| 108 |
* Support inlined definitions for tuple variants with a single field in C (#631) |
| 109 |
|
| 110 |
Thanks to all the awesome contributors that contributed to this release. |
| 111 |
|
| 112 |
## 0.15.0 |
| 113 |
|
| 114 |
* Allow customizing mangling of generic parameters in C (#575) |
| 115 |
* Box<T> simplifies to T* in C (4ce324c) |
| 116 |
* ManuallyDrop<T> and MaybeUninit<T> simplify to T in C, and are opaque in C++ (0076a17) |
| 117 |
* C++ supports a derive-ostream annotation to derive serialization of structs, unions and enums (#582) |
| 118 |
* Large character constants have been fixed on Windows (#586) |
| 119 |
* Constants are now generated for typedefs, etc (#589) |
| 120 |
* The `sort_by` configuration option has been made to work for constants (#587) |
| 121 |
* Default sort order is source order now (sort_by = "None"), and can be changed by the above option (#587) |
| 122 |
|
| 123 |
## 0.14.6 |
| 124 |
|
| 125 |
* Fixed the builds with older versions of rustc. |
| 126 |
|
| 127 |
## 0.14.5 |
| 128 |
|
| 129 |
* Add support to specify line ending style (#568) |
| 130 |
* Add cbindgen:ptrs-as-arrays annotation to allow making function |
| 131 |
arguments C/C++ arrays. |
| 132 |
|
| 133 |
## 0.14.4 |
| 134 |
|
| 135 |
* Allow to override the mangling separator (#502) |
| 136 |
|
| 137 |
* cbindgen now handles better having ZSTs in template parameters, and |
| 138 |
default template parameters (#563). |
| 139 |
|
| 140 |
* Support for annotating nonnull pointers (#558) |
| 141 |
|
| 142 |
* Fixed bitflags that overflow a signed integer (#556) |
| 143 |
|
| 144 |
* Support for wildcard argument names (#550) |
| 145 |
|
| 146 |
* Support for the never return type, with configurable annotation (#549) |
| 147 |
|
| 148 |
* Properly reject arrays as function arguments (#540) |
| 149 |
|
| 150 |
## 0.14.3 |
| 151 |
|
| 152 |
* Introduce cbindgen:ignore comment annotation, to allow ignoring items or modules. (#519) |
| 153 |
* Support for casts in constant expressions. (#526) |
| 154 |
* Make a non-fatal error a warning message. (#535) |
| 155 |
* Add a --metadata option to the CLI, to allow passing pre-computed cargo metadata. (#538) |
| 156 |
|
| 157 |
## 0.14.2 |
| 158 |
|
| 159 |
* Fixed minimal dependency versions. (#507) |
| 160 |
* Add an option to write pragma once. (#511) |
| 161 |
* Fix submodule scanning for implicit Rust 2018 modules. (#512) |
| 162 |
* Fix dependency parsing / scanning to handle target-specific versions. (#513) |
| 163 |
* Use heck for case conversion. (#514) |
| 164 |
* Add support for verbatim content after includes. (#416) |
| 165 |
* Allow to add attributes to most generated functions. (#515) |
| 166 |
|
| 167 |
## 0.14.1 |
| 168 |
|
| 169 |
* Handle mangling pointers. (#508) |
| 170 |
* Unconditionally generate a return statement in partialeq implementations. (#509) |
| 171 |
|
| 172 |
## 0.14.0 |
| 173 |
|
| 174 |
* Minor tweak at how [export.exclude] is handled to allow excluding |
| 175 |
generic instantiations in C mode. (#501) |
| 176 |
* Documented cpp_compat option. (#496) |
| 177 |
* Fixed a panic when parsing associated constants for a built-in type. (#494) |
| 178 |
|
| 179 |
## 0.13.2 |
| 180 |
|
| 181 |
* Constants now have suitable documentation. (#471) |
| 182 |
* Fixed some C warnings by emitting void when there are no arguments. (#470) |
| 183 |
* Avoids reading cargo.toml when not needed, which can cause panics in workspace situations. |
| 184 |
* Only write `default` cases if the switch is not exhaustive. (#475) |
| 185 |
* Some warnings have been refined. (#477) |
| 186 |
* Code generation for static arrays has been fixed. (#479) |
| 187 |
* Opt-in support for constexpr in constants. (#481) |
| 188 |
* Fix C code generation and some warnings when extremely large constants are used. (#490) |
| 189 |
* Proper escaping of enum variants and fields. (#483) |
| 190 |
* Added support for RefCell (as an opaque type) and Cell. (#489) |
| 191 |
|
| 192 |
## 0.13.1 |
| 193 |
|
| 194 |
* Support `#[cfg]` on individual enum variants. (#469) |
| 195 |
|
| 196 |
## 0.13.0 |
| 197 |
|
| 198 |
* Support 'swift_name' attributes on generated functions (#449) |
| 199 |
* Add [export.pre_body] to config (#452) |
| 200 |
* Handle new line in doc attribute (#454) |
| 201 |
* Add support for `Self` in tagged enums, structs and unions (#455, #455, #456) |
| 202 |
* Make sentinel variant respect regular config (#459) |
| 203 |
* Fix layout of tagged enums with size under some configurations (#463) |
| 204 |
* Add an option to allow configuring the order of function names in generated headers (#466) |
| 205 |
|
| 206 |
## 0.12.2 |
| 207 |
|
| 208 |
* Fixed version detection with lockfile v2. https://github.com/eqrion/cbindgen/pull/446 |
| 209 |
* Added support for export_name on functions. https://github.com/eqrion/cbindgen/pull/447 |
| 210 |
|
| 211 |
## 0.12.1 |
| 212 |
|
| 213 |
* Added support for #[repr*64)] on enums. https://github.com/eqrion/cbindgen/pull/441 |
| 214 |
* Added support to generate plain enums instead of enum classes for C++. https://github.com/eqrion/cbindgen/pull/443 |
| 215 |
* Fixed dependency resolution with lockfile v2. https://github.com/eqrion/cbindgen/pull/438 |
| 216 |
|
| 217 |
## 0.12.0 |
| 218 |
|
| 219 |
* Added support for #[repr(align)] and #[repr(packed)] on structs and unions. https://github.com/eqrion/cbindgen/pull/431 |
| 220 |
* Added support to generate copy-assignment operators for enums. https://github.com/eqrion/cbindgen/pull/434 |
| 221 |
|
| 222 |
## 0.11.1 |
| 223 |
|
| 224 |
* More binary operators and expressions are supported. https://github.com/eqrion/cbindgen/pull/425 |
| 225 |
* More built-in bitflags operators. https://github.com/eqrion/cbindgen/pull/426 |
| 226 |
|
| 227 |
## 0.11.0 |
| 228 |
|
| 229 |
* Made rust char map to uint32_t. https://github.com/eqrion/cbindgen/pull/424 |
| 230 |
|
| 231 |
## 0.10.1 |
| 232 |
|
| 233 |
* Improved error message for missing config file. https://github.com/eqrion/cbindgen/pull/422 |
| 234 |
* Add missing header for char32_t. https://github.com/eqrion/cbindgen/pull/414 |
| 235 |
|
| 236 |
## 0.10.0 |
| 237 |
|
| 238 |
* Initialize struct literal with list-initializer for C++11 standard. https://github.com/eqrion/cbindgen/pull/401 |
| 239 |
* Surround namespace with __cplusplus ifdef in cpp_compat mode. https://github.com/eqrion/cbindgen/pull/407 |
| 240 |
* Add support for --quiet flag. https://github.com/eqrion/cbindgen/pull/400 |
| 241 |
* Map char to char32_t. https://github.com/eqrion/cbindgen/pull/396 |
| 242 |
* Improve binding_crate_ref() error message. https://github.com/eqrion/cbindgen/pull/395 |
| 243 |
* avoid prematurely returning during expansion. https://github.com/eqrion/cbindgen/pull/389 |
| 244 |
* Add support for adding "using namespace" statements. https://github.com/eqrion/cbindgen/pull/387 |
| 245 |
|
| 246 |
## 0.9.1 |
| 247 |
|
| 248 |
* Various improvements to comment output. https://github.com/eqrion/cbindgen/pull/370 / https://github.com/eqrion/cbindgen/pull/375. |
| 249 |
* Fixed expand when ran from build.rs. https://github.com/eqrion/cbindgen/pull/371 |
| 250 |
* More debugging output for expansion. https://github.com/eqrion/cbindgen/pull/383 |
| 251 |
* New option to add a default private constructor in C++ tagged enums. https://github.com/eqrion/cbindgen/pull/377 |
| 252 |
* Syn and related dependencies updated to 1.0. https://github.com/eqrion/cbindgen/pull/379 |
| 253 |
|
| 254 |
## 0.9.0 |
| 255 |
|
| 256 |
* Support to generate C headers with C++ compatibility. https://github.com/eqrion/cbindgen/pull/349 |
| 257 |
* Fix include guard generation when no_includes is set. https://github.com/eqrion/cbindgen/pull/352 |
| 258 |
* Fix crate parsing order so that types from the binding crate are preferred in presence of conflicting names. https://github.com/eqrion/cbindgen/pull/355 |
| 259 |
* Add extra_bindings option to generate bindings for dependencies. https://github.com/eqrion/cbindgen/pull/362 |
| 260 |
* Clap dependency is optional now so it's feasible to avoid building it if cbindgen is used as a library. https://github.com/eqrion/cbindgen/pull/363 |
| 261 |
|
| 262 |
## 0.8.7 |
| 263 |
|
| 264 |
* Require C++11 to run the test-suite (#341, test-only) |
| 265 |
* Improve mangling error message (#340) |
| 266 |
* Add the ability to automatically derive copy-constructors for tagged enums (#339) |
| 267 |
* Use placement new for constructing in tagged unions' helper methods (#333) |
| 268 |
|
| 269 |
## 0.8.6 |
| 270 |
|
| 271 |
* Fixed a panic when missing a lock file |
| 272 |
|
| 273 |
## 0.8.5 |
| 274 |
|
| 275 |
* Improved support for Rust 2018 modules |
| 276 |
* Add possibility to autogenerate tagged union destructors |
| 277 |
|
| 278 |
## 0.8.4 |
| 279 |
|
| 280 |
* Support for package renaming in Cargo.toml |
| 281 |
* Improved error messages for |cargo metadata| failures |
| 282 |
* Replaced 'test.py' harness with |cargo test| |
| 283 |
* Char constants will now be escaped properly |
| 284 |
* Visibility of constants will now be respected |
| 285 |
* Added a C99 doc comment style |
| 286 |
|
| 287 |
## 0.8.2 |
| 288 |
|
| 289 |
* Improvements to bitflags parsing |
| 290 |
|
| 291 |
## 0.8.1 |
| 292 |
|
| 293 |
* Support for manual parsing and expanding of bitflags macros |
| 294 |
* Support for optional tagged enum casts with asserts |
| 295 |
|
| 296 |
## 0.8.0 |
| 297 |
|
| 298 |
* support for 'includes' without default includes |
| 299 |
* removed dependency on ancient serde_derive! |
| 300 |
|
| 301 |
## 0.7.1 |
| 302 |
|
| 303 |
* Fix for crash when unwrapping unsupported type with associated constants |
| 304 |
|
| 305 |
## 0.7.0 |
| 306 |
|
| 307 |
* support for libc::ssize_t |
| 308 |
* fixed some warnings on nightly |
| 309 |
* fix for transparent associated constants |
| 310 |
* switched more API's to use AsRef<Path> |
| 311 |
* impl std::error::Error for cbindgen::Error |
| 312 |
* now support putting user-defined content in item bodies |
| 313 |
|
| 314 |
## 0.6.8 |
| 315 |
|
| 316 |
* ptrdiff_t is now a recognized primitive type |
| 317 |
* named function type arguments are now propagated |
| 318 |
* fixes for struct literals in constants |
| 319 |
* reserved C/C++ keywords are now escaped automatically |
| 320 |
* negative enum discriminants are now supported |
| 321 |
* fix for prefixing and formatting variant names |
| 322 |
* fix for snake_case formatter |
| 323 |
* syn update |
| 324 |
* doxygen style comments are now output by default |
| 325 |
* VaList is now a recognized primitive type |
| 326 |
* fix for comment processing |
| 327 |
* constant is propagated into array types |
| 328 |
* references are now supported in IR, and used for some helper method generation |
| 329 |
* assignment helper functions will generate array copies if necessary |