Commit Graph

226 Commits

Author SHA1 Message Date
Christian Poveda
0296f9e86c
split the repo into a workspace
remove `clap` dependency 🎉

update the book installation instructions
2022-10-04 20:47:17 -05:00
Amanjeev Sethi
6dfc3e70df
Sorting the output semantically (#2254)
Generated code needs some sorting in a way that is
semantically appealing. The request[1] asks for basic
sorting like "types are declared first, then all structs,
then all consts, then all function signatures, etc.

[1] https://github.com/rust-lang/rust-bindgen/issues/1743

Signed-off-by: Amanjeev Sethi <aj@amanjeev.com>
Co-authored-by: Christian Poveda <christian.poveda@ferrous-systems.com>
Co-authored-by: Darren Kulp <darren@kulp.ch>
2022-08-25 00:45:03 +02:00
Darren Kulp
87e2e91356 Bump MSRV to 1.57.0 2022-07-18 10:50:15 +02:00
onalante-msft
cb23b471c1 Only insert uninit_decl if check_field_offset is non-empty 2022-07-16 14:33:01 +02:00
Justin Smith
a1a00434ff Bump msrv to 1.56.1 2022-06-23 16:10:27 +02:00
dependabot[bot]
3988fce62f Bump regex from 1.4.6 to 1.5.5
Bumps [regex](https://github.com/rust-lang/regex) from 1.4.6 to 1.5.5.
- [Release notes](https://github.com/rust-lang/regex/releases)
- [Changelog](https://github.com/rust-lang/regex/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/regex/compare/1.4.6...1.5.5)

---
updated-dependencies:
- dependency-name: regex
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-06 23:22:02 +02:00
Emilio Cobos Álvarez
9ca5f856a3 Bump version. 2022-06-06 13:22:48 +02:00
Emilio Cobos Álvarez
3551811340
v0.60.0
Closes #2209
2022-06-05 20:38:24 +02:00
Darren Kulp
0223cab9d8 tests: Remove testing_only_libclang_4 and expectations 2022-03-15 03:54:37 +01:00
Darren Kulp
8be556a08e tests: Remove clang-3.9 expectations 2022-02-18 19:33:25 +01:00
Mateusz Mikuła
3bc4044c78 Upgrade Clap to version 3 2022-01-29 11:30:39 +01:00
Emilio Cobos Álvarez
8903264904 Bump version.
* cexpr+env_logger bump.
 * Various fixes for C++ crashes / hangs.
 * Enums now respect annotations and derives properly in more cases.
 * Some more APIs (blocklist-file, etc).
 * 'static lifetime is elided when appropriate.
2021-11-26 02:53:18 +01:00
Anthony Ramine
82462a37a1 Bump cexpr to 0.6 2021-10-13 12:30:30 +02:00
Bastien Orivel
a3f9125ce8 Update which to 4 2021-07-31 13:32:55 +02:00
Bastien Orivel
fe29f5334a Update env_logger to 0.9
The default output changed to be using target instead of the module path
in it but this doesn't seem to be affecting bindgen since it's never
overriding it and it defaults to the module path.
2021-07-31 13:32:55 +02:00
Emilio Cobos Álvarez
9a9438f3d6 v0.59.1 2021-07-26 00:25:03 +02:00
Emilio Cobos Álvarez
67140077f6
v0.59.0 2021-07-20 12:20:14 +02:00
Anthony Ramine
e05a451ba7 Bump cexpr to 0.5 2021-07-19 12:20:49 +02:00
Adam Perry
1bb548b7a7 Support emitting Makefile-syntax depfiles like gcc/clang/rustc.
Needed to auto-bindgen with a ninja build without the build graph
going stale.
2021-04-24 00:51:44 +02:00
Emilio Cobos Álvarez
696455d1c1 v0.58.1 2021-04-06 11:19:31 +02:00
Emilio Cobos Álvarez
d7ba7d1dcb
v0.58.0 2021-04-03 13:16:10 +02:00
Fenhl
650732cd22 Upgrade to shlex 1 2021-02-21 19:30:43 +01:00
Emilio Cobos Álvarez
5ca2fc7a02 v0.57.0 2021-02-01 14:06:00 +01:00
Emilio Cobos Álvarez
11ae35089e
v0.56.0 2020-11-26 11:36:09 +01:00
Emilio Cobos Álvarez
30fb4eccb3 Remove cfg-if dependency.
We use it so little that it's not worth it.
2020-11-25 22:03:08 +01:00
Emilio Cobos Álvarez
84b5455f88
Keep dependencies up-to-date.
A few tests change some formatting, but that's fine.
2020-11-13 20:02:30 +01:00
Emilio Cobos Álvarez
d492ac4ae1 v0.55.1 2020-08-25 00:38:57 +02:00
Emilio Cobos Álvarez
0996486f09 Release v0.55.0 2020-08-24 11:58:44 +02:00
Kyle Mayes
704b9eece3 Update to clang-sys 1.0.0 2020-08-18 02:39:06 +02:00
Darren Kulp
03dbd1a3f8 Remove testing_only_libclang_3_8 and expectations 2020-07-20 18:55:10 +02:00
Emilio Cobos Álvarez
f94036fd18
Release v0.54.1 2020-07-06 19:17:12 +02:00
Emilio Cobos Álvarez
d405baf05a
Release 0.54.0. 2020-05-21 21:41:37 +02:00
Joshua Nelson
2eac7669ec Upgrade to 2018 edition 2020-04-27 15:38:52 -04:00
Emilio Cobos Álvarez
cfd3347c66 Release 0.53.2 2020-03-10 00:17:33 +01:00
Jeff Muizelaar
252c5e97b2 Update to cexpr 0.4
This moves us from nom 4 to nom 5.
2020-03-10 00:05:48 +01:00
Josh Stone
4ba5c607d5 Update to clang-sys 0.29 2020-03-09 18:13:55 +01:00
Emilio Cobos Álvarez
02e76faa7a Release 0.53.1. 2020-02-03 13:20:21 +01:00
Emilio Cobos Álvarez
1d86a83a87
Release v0.53.0 2020-02-02 23:33:55 +01:00
Emilio Cobos Álvarez
b44be6e3db
v0.52.0 2019-11-19 16:59:38 +01:00
Ilia Kravets
ec35b7ab7e Update cexpr dependency 2019-11-08 13:45:45 +01:00
Danny Bautista
18a64e60b3 Turn off regex default features. 2019-10-27 00:07:58 +02:00
Jeremy Fitzhardinge
5915768cb0 Allow static and dynamic linking
Currently bindgen always uses clang-sys with the "runtime" feature -
that is, load libclang at runtime with dlopen (or similar)
at runtime.  This PR keeps this default, but also
- adds "static" to statically link libclang
- without either "runtime" or "static", link with the shared library

Many distributions don't ship with a static libclang, but linking with the dynamic
library will use normal ld.so mechanisms to define where the .so file should be found.
(Ditto for the Mac and Windows equivalents.)
2019-10-21 23:06:10 +02:00
Emilio Cobos Álvarez
cd4f0043fb Add llvm 9.0 to CI. 2019-10-14 14:15:46 +02:00
Cameron McCormack
fa3f7896da Cache the result of Item::path_for_whitelisting. 2019-10-08 01:40:07 +02:00
Bastien Orivel
e659df12bc Update env_logger and run a full cargo update 2019-10-04 03:26:15 +02:00
Adrien Prokopowicz
8fd16b9232
Upgrade 'which' to remove indirect dependency on 'failure'. 2019-09-23 10:53:09 +02:00
Evgeniy A. Dushistov
43f8968f9a fxhash -> rustc-hash
fixes #1616
2019-09-23 10:51:04 +02:00
Ryan Lopopolo
b8b1fe2e41 Add which-rustfmt feature
This feature controls whether bindgen will use the which crate to detect
the rustfmt binary. This makes which an optional dependency.

which-rustfmt is a default feature which makes this change backward compatible.
2019-09-17 09:35:52 +09:00
Bastien Orivel
ac99aa1409 Update syn related dependencies and bump version 2019-09-02 10:14:16 +02:00
Emilio Cobos Álvarez
37e3d658b1
Release 0.51.0. 2019-07-26 17:54:34 +02:00