Skip to content

Releases: mozilla/cbindgen

v0.14.1

10 Apr 15:05
Compare
Choose a tag to compare
 * Handle mangling pointers. (#508)
 * Unconditionally generate a return statement in partialeq implementations. (#509)

v0.14.0

04 Apr 19:56
Compare
Choose a tag to compare
 * Minor tweak at how [export.exclude] is handled to allow excluding
   generic instantiations in C mode. (#501)
 * Documented cpp_compat option. (#496)
 * Fixed a panic when parsing associated constants for a built-in type. (#494)

v0.13.2

21 Mar 02:54
Compare
Choose a tag to compare
   * Constants now have suitable documentation. (#471)
   * Fixed some C warnings by emitting void when there are no arguments. (#470)
   * Avoids reading cargo.toml when not needed, which can cause panics in workspace situations.
   * Only write `default` cases if the switch is not exhaustive. (#475)
   * Some warnings have been refined. (#477)
   * Code generation for static arrays has been fixed. (#479)
   * Opt-in support for constexpr in constants. (#481)
   * Fix C code generation and some warnings when extremely large constants are used. (#490)
   * Proper escaping of enum variants and fields. (#483)
   * Added support for RefCell (as an opaque type) and Cell. (#489)

''

09 Mar 15:13
Compare
Choose a tag to compare
''
ir: escape export_name while writing source of EnumVariant

v0.13.1

09 Feb 15:17
3b97f4f
Compare
Choose a tag to compare
  * Support #[cfg] on individual enum variants. (#469)

v0.13.0

31 Jan 01:14
5e66715
Compare
Choose a tag to compare
 * Support 'swift_name' attributes on generated functions (#449)
 * Add [export.pre_body] to config (#452)
 * Handle new line in doc attribute (#454)
 * Add support for `Self` in tagged enums, structs and unions (#455, #455, #456)
 * Make sentinel variant respect regular config (#459)
 * Fix layout of tagged enums with size under some configurations (#463)
 * Add an option to allow configuring the order of function names in generated headers (#466)

v0.12.2

12 Jan 16:20
ac1a7d4
Compare
Choose a tag to compare
v0.12.2

v0.12.1

30 Dec 00:20
f5d76c4
Compare
Choose a tag to compare
 * Added support for #[repr*64)] on enums. https://github.com/eqrion/cbindgen/pull/441
 * Added support to generate plain enums instead of enum classes for C++. https://github.com/eqrion/cbindgen/pull/443
 * Fixed dependency resolution with lockfile v2. https://github.com/eqrion/cbindgen/pull/438

v0.12.0

16 Dec 12:48
38fda6b
Compare
Choose a tag to compare
 * Added support for #[repr(align)] and #[repr(packed)] on structs and unions. https://github.com/eqrion/cbindgen/pull/431
 * Added support to generate copy-assignment operators for enums. https://github.com/eqrion/cbindgen/pull/434

v0.11.1

08 Dec 21:38
e050442
Compare
Choose a tag to compare
v0.11.1