1092 Commits

Author SHA1 Message Date
97f9e1961a alnyan/yggdrasil: add CPtrResult 2024-03-15 19:49:36 +02:00
40caf06c0a alnyan/yggdrasil: add usize/isize type customization 2024-03-15 19:47:48 +02:00
Arthur Meyre
f1d5801d3b fix: select package for bindgen based on name and manifest path
- the old code was selecting the first package that was found which meant
that dependencies with the same name could be used for bindgen instead of
the intended package
- a fallback to the old behavior is kept for now in case manifest paths are
not matching because of relative paths for example
- this should be backwards compatible with all cbindgen usage, the
selection bug may still trigger in case the manifest path does not match
2024-02-26 17:59:37 +01:00
Sijie Yang
95047dbf23 Update README.md 2024-02-26 17:58:10 +01:00
Alex Touchet
1f67bea7d8 Update doc link in Readme so it works from docs.rs 2024-02-26 17:57:50 +01:00
Arun
6b7c2e15f5 Quote envvar to match documentation 2024-02-26 17:57:21 +01:00
Arun
dc188b02ea ci: Use GITHUB_OUTPUT envvar instead of set-output command 2024-02-26 17:57:21 +01:00
Jonathan Schwender
ef086cb02d Bump Serial-test
Disable default features (logging, async), since we don't need
them right now.
2024-02-26 17:16:12 +01:00
Jonathan Schwender
e6f51dc61f Update clap further 2024-02-26 17:16:12 +01:00
Jonathan Schwender
bb45e8d0b7 Update dependencies and bump MSRV to 1.70 2024-02-26 17:16:12 +01:00
Jonathan Schwender
e32090e334 Fix clippy warning 2024-02-26 17:16:12 +01:00
Emilio Cobos Álvarez
61d4112374 Fix clap 4 update. 2024-02-26 17:16:12 +01:00
boxdot
d49048573c Upgrade clap 3 to clap 4
This also removes the dependency on the unmaintained crate atty.

Closes #828
2024-02-26 17:16:12 +01:00
Jonathan Schwender
c9c90bf661 Fix ..Default::default() for struct Config
Previously the `depfile` option added a new private member to the
`Config` struct - a breaking change which many users complained about.
Making the field public, but hiding it from the documentation and
excluding it from `serde` reverts the breakage, while keeping the
depfile functionality.
2024-02-06 19:06:52 +01:00
Aidan Hobson Sayers
6bfc217618 Add docs for no-export 2023-11-11 19:19:10 +01:00
Emilio Cobos Álvarez
703b53c06f
v0.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].
2023-09-13 11:14:28 +02:00
Alex Touchet
56f0febc9b Update MSRV in Readme 2023-09-12 10:29:19 +02:00
Mike Hommey
9b4a14958e Add support for out-of-line bitfields declarations 2023-09-12 10:28:58 +02:00
Alex Touchet
35f2e44ef2 Update URLs 2023-09-09 00:54:28 +02:00
Thibaut Lorrain
85eb0f4436 Bump clippy msrv to 1.64
the msrv was bumped in in the Cargo.toml #847 but not in clippy.toml,
clippy was complaining at startup and defaulting to 1.57
2023-09-09 00:53:59 +02:00
Mike Hommey
43af1ebe6e Handle bitflags bits method calls 2023-09-09 00:53:45 +02:00
Emilio Cobos Álvarez
f72e447156
CHANGES: Note #[deprecated] support. 2023-09-04 20:18:44 +02:00
Emilio Cobos Álvarez
1473070230
utilities: annotation: Clean-up deprecated parsing and getter. 2023-09-04 20:18:44 +02:00
sevenc-nanashi
0fb5d07ae4
Add support for #[deprecated].
Closes #875.
Closes #860.
Closes #408.
2023-09-04 20:18:44 +02:00
Jannis Ruh
d8355da466
Support "C-unwind" ABI
Closes #864
2023-09-04 20:12:55 +02:00
Jonathan Schwender
db6ccdd863 Fix cargo semver-checks rust version
I forgot forcing stable rustc for semver-checks in commit 67fea1a.
On nightly Rust it is possible for the rustdoc version
to be newer than what cargo semver checks supports.
2023-09-04 19:37:56 +02:00
Jonathan Schwender
e7613e5701 CI: Use Cython 3.0 2023-09-04 19:37:45 +02:00
Jonathan Schwender
51a981cefc Rename expectations files
Rename expectation files to contain only one dot.
This is needed for the Cython tests as of Cython 3.
The following script was used in a clean repository
to rename the files:

```sh
 ls | sed -E -n 's/(.*)\.(both|tag)?((\..*)?\.(c|cpp|pyx))/mv "\1.\2\3" "\1_\2\3"/p' | sh
```
2023-09-04 19:37:45 +02:00
Jonathan Schwender
ff888019fe Allow Warnings in Cython tests
Cython 3.0 deprecated `IF` and `DEF`. Until this is fixed
allow warnings in our `Cython` tests.
Background: https://github.com/cython/cython/issues/4310

Note the warnings will become hard errors in the future.
2023-09-04 19:37:45 +02:00
Jonathan Schwender
23f7bbcf9f Fix most Python tests with Cython 3.0
Since Cython 3.0 using dots appart from the extension is
a hard error. See issue: https://github.com/cython/cython/issues/2686
2023-09-04 19:37:45 +02:00
Marin Veršić
5f235ec199
generate bindings for non-public extern items
Signed-off-by: Marin Veršić <marin.versic101@gmail.com>
2023-08-25 11:11:16 -04:00
boxdot
acb1b8d89e fix: verbose logging was always info 2023-08-25 16:57:33 +02:00
Jonathan Schwender
aeea9c67ff
Fix swapping of >>= and <<= in constants
This should't change behavior in practice since using these in constants
doesn't seem possible.

Closes #850
2023-08-25 10:55:53 -04:00
Jonathan Schwender
dd9a550152 Fix minimal Rust version in CI
The minimum rust version was bumped, so we need
to install the appropriate version in CI.
2023-08-25 16:47:30 +02:00
Jonathan Schwender
0529d215e7 Revert "Upgrade clap 3 to clap 4"
This reverts commit b734008c71f31a125797e799f420e1ad32f6b2f9.
2023-08-25 16:47:30 +02:00
Jonathan Schwender
289a31ba45 Fix clippy warning
Rust 1.72 added a new warning, which should have been ignored
by clippy, since clippy.toml is still st to 1.57.0
2023-08-25 16:47:30 +02:00
Jonathan Schwender
67fea1a1a2 Fix CI
Commit 667de09279c3d5f0524216fefa949e64cbd3bc1a
broke CI by adding rust-toolchain.toml, which changed
the default rust version to nightly.
Explicitly specify the rust version in CI to use the correct
toolchain.
2023-08-25 16:47:30 +02:00
Jonathan Schwender
80526e72f9 Update changelog for v0.25.0 2023-08-25 15:50:52 +02:00
Jonathan Schwender
1e2ffd4414 CI: Replace forbidden actions with cli code
the semver checks action and the release action are not
in the allow-list so replace them with their respective
cli counterparts.
These changes can only be tested by someone with permissions,
so the release part only releases a draft release for now.
2023-08-25 15:50:52 +02:00
Jonathan Schwender
f61946b979 CI: Add semver checks to CI deploy job
This will fail creating a new github release, if the semver
action fails.
This would have caught #841.
2023-08-25 15:50:52 +02:00
boxdot
b61aa2c330 msrv 1.64 2023-08-25 15:50:04 +02:00
boxdot
b734008c71 Upgrade clap 3 to clap 4
This also removes the dependency on the unmaintained crate atty.

Closes #828
2023-08-25 15:50:04 +02:00
sevenc-nanashi
667de09279 Add: Add rust-toolchain.toml 2023-08-25 15:49:03 +02:00
sevenc-nanashi
1b7aab6a87 Add: Cython 3 fails test 2023-08-25 15:49:03 +02:00
sevenc-nanashi
85bed13893 Change: this project requires proc-macro2 1.0.60+ 2023-08-25 15:49:03 +02:00
Emilio Cobos Álvarez
0b43f0bc6c ci: Switch back to dtolnay/rust-toolchain action. 2023-06-07 17:39:59 +02:00
Emilio Cobos Álvarez
e9e88b0ab0
Yank last version and bump for now (unpublished) 2023-06-01 10:23:21 +02:00
Jonathan Schwender
cbd3541614 Bump version 2023-05-31 12:32:35 +02:00
Jonathan Schwender
927ecd95bf Update documented MSRV 2023-05-31 12:32:35 +02:00
Jonathan Schwender
166bcf307a Update Changelog 2023-05-31 12:32:35 +02:00