Skip to content

Releases: mozilla/cbindgen

0.28.0

15 Jan 11:37
Compare
Choose a tag to compare

0.28.0

  • Parse unsafe attributes in #1020
  • Fix local override of enum prefix-with-name by jsgf in #1006
  • Add rename-all=prefix in #1021
  • ir: add support for UnsafeCell and SyncUnsafeCell by alekitto in #1003
  • Implement mangling for arrays in #1022
  • Fix: Ignore CARGO_BUILD_TARGET in tests by bryango in #1010
  • Newline for each field for constexpr field constants by youknowone in #988
  • Fix clippy warnings by youknowone in #1026
  • Add aarch64/arm64 to CI by NickeZ in #1036
  • Add unstable_ir feature flag that makes the ir pub by heesooy in #1011
  • Support generated a symbols file by TheElectronWill in #916

v0.27.0

15 Jan 09:59
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.26.0...v0.27.0

0.26.0

13 Sep 19:46
703b53c
Compare
Choose a tag to compare
  • Fix swapping of >>= and <<= in constants.
  • Add support for #[deprecated] (#860).
  • Built-in support for bitflags 2.0.
  • Support for "C-unwind" ABI.
  • Generate bindings for non-public extern items if they are #[no_mangle].

v0.25.0

04 Sep 17:44
Compare
Choose a tag to compare
  * Re-release of yanked 0.24.6 as a major release
  * Update MSRV to 1.57
  * Support variadic arguments (`...`) (#805)
  * Add --depfile option (#820)
  * Breaking changes: The `Config` struct now has a private member.

v0.24.3

09 Jun 20:40
f43ccfc
Compare
Choose a tag to compare
  • Make struct expressions correctly generated through typedefs (#768).

v0.24.2

07 Jun 19:40
3d06ae1
Compare
Choose a tag to compare
  • Make bitfield operators use explicit constructors.

v0.24.1

07 Jun 17:41
Compare
Choose a tag to compare
  • Add support for unary negation (#765).
  • Make more bitfield operators constexpr (#765).

v0.24.0

07 Jun 14:24
f0d4f28
Compare
Choose a tag to compare
  • Basic const generic support (#759, #760 #762).
  • Suffixes on integer literals are now honored to avoid narrowing (#764).

v0.23.0

21 Apr 16:51
Compare
Choose a tag to compare
  • Better support for constexpr. (#756)
  • constexpr is now enabled by default in C++ mode. You can use const.allow_constexpr=false to revert to previous behavior. (#756)
  • Minimum syn version no longer parses old rust code. (#754)

v0.22.0

19 Apr 09:34
8604b2c
Compare
Choose a tag to compare
  • Support rename rule for union body members (#751).
  • constant: Add support for associated constant expressions (#752).
  • Fix regression in CamelCase rename rule (should be lowerCamelCase) (#750).
  • enumeration: simplify standard types in variants (#749).
  • Avoid generating and writing bindings when called recursively (#747).
  • Cython: Omit per-variant tags in unions generated for Rust enums (#748).
  • Update various dependencies.