Releases: mozilla/cbindgen
Releases · mozilla/cbindgen
0.29.0
0.29.0
- Support no-export annotation for statics and functions.
- Fixed conditional fields of constexpr literal structs
- Add rename rule for generated associated constant
- Upgrade heck to 0.5
- Add support for an optional nullable attribute
- docs.md: Fix deprecated_with_note and deprecated_variant_with_note being spelled as 'notes'
- Fix generic with "void" default
- Fixed error generation of structures using the keyword as inside arrays
- Added test for unsafe(no_mangle) attribute
- Fixed handling of trait methods containing the unsafe attribute
- Rename -Zparse-only
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
0.27.0
- Revert: The
Config
struct now has a private member. - Allow users to specify a crate version for bindings generation (#901).
- Update MSRV to 1.74 (#912, #987).
- Support #[deprecated] on enum variants (#933).
- Support integrating the package_version information in a header file comment (#939).
- Add a language backend (#942).
- Support generics with defaulted args (#959).
- Add
VaList
compatibility (#970).
0.26.0
- 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].
0.28.0
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
What's Changed
- Add docs for no-export by @aidanhs in #897
- Fix
..Default::default()
for structConfig
by @jschwe in #911 - Update dependencies and bump MSRV to v1.70 by @jschwe in #912
- ci: Use GITHUB_OUTPUT envvar instead of set-output command by @arunsathiya in #917
- Update doc link in Readme so it works from docs.rs by @atouchet in #910
- Update README.md by @iyangsj in #904
- feat: allow users to specify a crate version for bindings generation by @IceTDrinker in #901
- Use
retain
inItemMap::filter
by @cuviper in #932 - feat: support #[deprecated] on enum variants by @bkaestner in #933
- Added support for integrating the package_version information in a comment of the header file. by @emilio in #939
- Run CI jobs on the merge queue. by @emilio in #940
- ir: Write documentation on static items. by @emilio in #941
- Language back-end by @emilio in #942
- Account for cfg items in foreign mods. by @emilio in #943
- parser: Treat omitted ABI in extern block as "C". by @emilio in #944
- Add
cpp_compat
to template.toml by @vanillajonathan in #945 - Honor cbindgen:ignore directives for associated functions and constants by @scovich in #949
- Rename duplicate crate in workspace by @gferon in #950
- Revert accidentally committed debug code by @scovich in #951
- chore: Update dependencies. by @emilio in #954
- Update tests.rs to use pretty_assertions for readable diffs by @scovich in #957
- Handle constants of nested transparent types by @scovich in #958
- Support generics with defaulted args by @scovich in #959
- Point out issue with failing user builds due to syntax errors by @sirhcel in #965
- Va list binding compatibility by @gerard-ryan-immersaview in #970
- Fix variadic arguments when used in function pointer by @kanru in #971
- Add missing parens to log message by @akonradi-signal in #973
- Output condition for globals. by @flaviojs in #974
- Update CHANGES since v0.26.0 by @js2xxx in #975
- Cargo update and version bump. by @emilio in #986
- Bump MSRV by @emilio in #987
New Contributors
- @aidanhs made their first contribution in #897
- @arunsathiya made their first contribution in #917
- @iyangsj made their first contribution in #904
- @IceTDrinker made their first contribution in #901
- @bkaestner made their first contribution in #933
- @vanillajonathan made their first contribution in #945
- @scovich made their first contribution in #949
- @gferon made their first contribution in #950
- @sirhcel made their first contribution in #965
- @gerard-ryan-immersaview made their first contribution in #970
- @kanru made their first contribution in #971
- @akonradi-signal made their first contribution in #973
- @flaviojs made their first contribution in #974
- @js2xxx made their first contribution in #975
Full Changelog: v0.26.0...v0.27.0
0.26.0
v0.25.0
v0.24.3
v0.24.2
- Make bitfield operators use explicit constructors.