Kartikaya Gupta
2d6bcf8fb3
Since cbindgen now only compiles with the nightly compiler, update travis.yml accordingly
2018-02-21 14:21:56 -06:00
Kartikaya Gupta
d9b61bcf4b
Bump libc version to work around Amanieu/parking_lot#60
2018-02-21 14:21:56 -06:00
Kartikaya Gupta
4bd10c52ac
Replace syn with standalone-syn to avoid dragging in rustc internal lib dependencies
2018-02-21 14:21:56 -06:00
Danilo Bargen
7ee0448bd8
Add more libc primitive types
2018-02-08 09:41:06 -06:00
Josh Chase
9abaf017c0
Don't rename union generic type parameters
2018-02-06 16:09:10 -06:00
Josh Chase
5f85ed5f56
Don't rename struct generic type parameters
2018-02-06 16:09:10 -06:00
Ryan Hunt
270491f439
Rustfmt
2018-01-31 23:32:16 -06:00
Ryan Hunt
e336f80ff8
Update syn to 0.12.6
2018-01-31 23:28:20 -06:00
Ryan Hunt
e2982b81d3
Update the version to 0.4.3
2018-01-31 12:26:55 -06:00
Ingvar Stepanyan
70d8b95f78
Disallow unknown and conflicting repr markers
2018-01-31 09:35:29 -06:00
Ingvar Stepanyan
f9b8512dc2
Wrap tag into anonymous struct in C++
...
Fixes #122
2018-01-31 09:35:29 -06:00
Ingvar Stepanyan
0ebcf99d31
Fix wrapper kind for C-like tagged enum
...
Fixes #126
2018-01-31 09:35:29 -06:00
Ingvar Stepanyan
07eae4c171
Implement support for repr(C, Int)
...
Fixes #119
2018-01-31 09:35:29 -06:00
Ryan Hunt
3053d442c6
Update the version to 0.4.2
2018-01-29 15:20:23 -06:00
Ryan Hunt
33407202e1
Specify --lib with cargo expand and add crate testing
2018-01-29 15:17:23 -06:00
Ryan Hunt
4e481c1338
Add dependencies for tagged enums
2018-01-29 14:08:02 -06:00
Ryan Hunt
6c9a5aaeb0
Update the version to 0.4.1
2018-01-29 11:54:21 -06:00
Ryan Hunt
ee89f77a37
Update the README for sized tagged enums
2018-01-29 11:51:41 -06:00
Ingvar Stepanyan
bd494d4646
Simplify enum variant handling
2018-01-29 11:36:59 -06:00
Ingvar Stepanyan
3355f2b1ff
Rename fields generated by tagged enum
2018-01-29 11:36:59 -06:00
Ingvar Stepanyan
905b9a09aa
Add support for repr(C) tagged enums too
2018-01-29 11:36:59 -06:00
Ingvar Stepanyan
3b61c8ead5
Initial support for tagged enums
2018-01-29 11:36:59 -06:00
Kartikaya Gupta
2ccaa3e956
Add a derive_constructor option to generate struct constructors
2018-01-25 12:22:01 -06:00
Kartikaya Gupta
59104b1efa
Increase parse error message to include more context
2018-01-17 15:18:54 -06:00
Mrmaxmeier
d4ae7fcafd
update tests
2018-01-10 08:24:14 -06:00
Mrmaxmeier
dc7e2736c5
emit void prototype for empty args
2018-01-10 08:24:14 -06:00
Ryan Hunt
0051b8ae42
Update version to 0.4.0
2018-01-04 23:32:17 -06:00
Ryan Hunt
b0d4578214
Fix broken test
2018-01-04 23:30:53 -06:00
Ryan Hunt
60d95258ba
Add item renaming, prefixing, force including, and excluding
2018-01-04 23:29:21 -06:00
Ryan Hunt
1ae43feaaf
Add the ability to specify additional includes
2018-01-04 17:25:43 -06:00
Ryan Hunt
f564f2e686
Add an Error type
2018-01-04 17:07:16 -06:00
Ryan Hunt
21d917b723
Check for no_mangle and pub on functions and static items
2018-01-04 14:52:02 -06:00
Ryan Hunt
bcd532f674
Update the version to 0.3.3
2017-12-14 11:57:02 -06:00
Ryan Hunt
f0d6d67435
Rustfmt
2017-12-14 11:56:35 -06:00
Ryan Hunt
5b6f54a087
Add an option to Builder for preprocessor defines
2017-12-14 11:54:54 -06:00
Ryan Hunt
45bc829bf0
Update the version to 0.3.2
2017-11-29 11:11:00 -05:00
Anthony Ramine
88fa6884e2
Include cargo-metadata error in own error
2017-11-29 09:58:58 -06:00
Anthony Ramine
098e8f0e76
Do not forbid newlines in headers and trailers
2017-11-27 08:35:08 -06:00
Anthony Ramine
cc19d3c419
Update to serde 1.0
2017-11-27 08:05:46 -06:00
Christoph Schulz
c7c1621137
Require Path instead of &str for write_to_file().
2017-11-21 22:28:51 -06:00
Ryan Hunt
afd6526aba
Use cache: cargo
2017-11-18 22:07:47 -05:00
Ryan Hunt
58d3178dc5
Format with rustfmt-nightly
2017-11-18 21:44:33 -05:00
Ingvar Stepanyan
ce60054f8d
Fix order of closing namespaces and extern
2017-11-18 14:40:42 -06:00
Ingvar Stepanyan
04582bfb77
Fix OpaqueItem not implementing instantiate_monomorph
...
It had custom method with same name, while semantically it makes more sense to implement instantiate_monomorph from Item.
2017-11-18 14:40:42 -06:00
Ingvar Stepanyan
fada89c7f4
Remove Specialization in favour of generic typedef
2017-11-18 14:40:42 -06:00
Ingvar Stepanyan
4ee1a8bcc8
Remove obsolete template specialization
2017-11-18 14:40:42 -06:00
Ingvar Stepanyan
8fddc5d0a9
Emit generics as native templates in C++
2017-11-18 14:40:42 -06:00
Ingvar Stepanyan
949518fd6c
Don't prefix enum variants with name in C++
...
In C++, output already uses enum classes so enum variants are only accessible via enum name E::A and there is no point in manually prefixing them again to make it E::E_A.
C uses global scope for all enum variants, so transformation continues to work as it did.
2017-11-17 11:00:48 -06:00
Ingvar Stepanyan
f0bef30daa
Simplify opaque struct output in C
...
There is no need for a separate forward struct declaration, just like in case with regular structures.
2017-11-16 23:26:07 -06:00
Ingvar Stepanyan
c8cccd58af
Fix test.py shebang
...
Ensures that Python is correctly found across different platforms.
2017-11-15 16:20:57 -06:00