* Introduce cbindgen:ignore comment annotation, to allow ignoring items or modules. ([#519](https://github.com/eqrion/cbindgen/issues/519))
* Support for casts in constant expressions. ([#526](https://github.com/eqrion/cbindgen/issues/526))
* Make a non-fatal error a warning message. ([#535](https://github.com/eqrion/cbindgen/issues/535))
* Add a --metadata option to the CLI, to allow passing pre-computed cargo metadata. ([#538](https://github.com/eqrion/cbindgen/issues/538))
0.14.2
* Fixed minimal dependency versions. ([#507](https://github.com/eqrion/cbindgen/issues/507))
* Add an option to write pragma once. ([#511](https://github.com/eqrion/cbindgen/issues/511))
* Fix submodule scanning for implicit Rust 2018 modules. ([#512](https://github.com/eqrion/cbindgen/issues/512))
* Fix dependency parsing / scanning to handle target-specific versions. ([#513](https://github.com/eqrion/cbindgen/issues/513))
* Use heck for case conversion. ([#514](https://github.com/eqrion/cbindgen/issues/514))
* Add support for verbatim content after includes. ([#416](https://github.com/eqrion/cbindgen/issues/416))
* Allow to add attributes to most generated functions. ([#515](https://github.com/eqrion/cbindgen/issues/515))
0.14.1
* Handle mangling pointers. ([#508](https://github.com/eqrion/cbindgen/issues/508))
* Unconditionally generate a return statement in partialeq implementations. ([#509](https://github.com/eqrion/cbindgen/issues/509))
0.14.0
* Minor tweak at how [export.exclude] is handled to allow excluding
generic instantiations in C mode. ([#501](https://github.com/eqrion/cbindgen/issues/501))
* Documented cpp_compat option. ([#496](https://github.com/eqrion/cbindgen/issues/496))
* Fixed a panic when parsing associated constants for a built-in type. ([#494](https://github.com/eqrion/cbindgen/issues/494))
0.13.2
* Constants now have suitable documentation. ([#471](https://github.com/eqrion/cbindgen/issues/471))
* Fixed some C warnings by emitting void when there are no arguments. ([#470](https://github.com/eqrion/cbindgen/issues/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](https://github.com/eqrion/cbindgen/issues/475))
* Some warnings have been refined. ([#477](https://github.com/eqrion/cbindgen/issues/477))
* Code generation for static arrays has been fixed. ([#479](https://github.com/eqrion/cbindgen/issues/479))
* Opt-in support for constexpr in constants. ([#481](https://github.com/eqrion/cbindgen/issues/481))
* Fix C code generation and some warnings when extremely large constants are used. ([#490](https://github.com/eqrion/cbindgen/issues/490))
* Proper escaping of enum variants and fields. ([#483](https://github.com/eqrion/cbindgen/issues/483))
* Added support for RefCell (as an opaque type) and Cell. ([#489](https://github.com/eqrion/cbindgen/issues/489))
0.13.1
* Support `#[cfg]` on individual enum variants. ([#469](https://github.com/eqrion/cbindgen/issues/469))
0.13.0
* Support 'swift_name' attributes on generated functions ([#449](https://github.com/eqrion/cbindgen/issues/449))
* Add [export.pre_body] to config ([#452](https://github.com/eqrion/cbindgen/issues/452))
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
- `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language
- `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language
- `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language
- `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language
- `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme
Additionally, you can set the following in your Dependabot [dashboard](https://app.dependabot.com):
- Update frequency (including time of day and day of week)
- Pull request limits (per update run and/or open at any time)
- Out-of-range updates (receive only lockfile updates, if desired)
- Security updates (receive only security updates, if desired)
Updates the requirements on cbindgen to permit the latest version.
Changelog
Sourced from cbindgen's changelog.
Commits
cc2876f
Release 0.14.3ce28fd7
main: Allow to pass a metadata file from the CLI.229b714
README: add etesync-rs to the example usages09e6549
Log non-fatal failure as a warningbb00d1c
Support renaming for constants with casts, and properly order them in the out...967c378
Support casts in constantsd747939
Add instructions for C language switchb04aa7e
parser: Introduce cbindgen:ignore comment annotation, to allow ignoring items...f75d65c
parser: Factor out the "should skip parsing" test.6323a5d
parser: Unify a bit the attribute code.Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) - `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language - `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language - `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language - `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language - `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme Additionally, you can set the following in your Dependabot [dashboard](https://app.dependabot.com): - Update frequency (including time of day and day of week) - Pull request limits (per update run and/or open at any time) - Out-of-range updates (receive only lockfile updates, if desired) - Security updates (receive only security updates, if desired)