Debian Codegraph @

vendor/cbindgen/CHANGES

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