296 Commits

Author SHA1 Message Date
Ryan Hunt
98c707b66e Generate typedef's by default and transfer annotations from typedef to aliased 2017-07-21 13:19:24 -04:00
Evgeniy Reizner
18d011fc6c Fixed example building.
Fix:

```rust
 --> build.rs:8:24
  |
8 |     cbindgen::generate(crate_dir)
  |                        ^^^^^^^^^ expected &str, found struct `std::string::String`
  |
  = note: expected type `&str`
             found type `std::string::String`
  = help: try with `&crate_dir`
```
2017-07-19 15:07:58 -05:00
Ryan Hunt
c36a6ff64a Use intptr_t for isize 2017-07-19 04:20:55 -04:00
Ryan Hunt
5fcd4ed4b7 Update to version 0.1.18 2017-07-19 01:00:05 -04:00
Ryan Hunt
98241ce7e4 Add a warning when using ssize_t outside of linux 2017-07-19 00:57:02 -04:00
Josh Chase
9417a783e9 Support isize 2017-07-18 23:37:57 -05:00
Josh Chase
043257045a Also generate headers for cdylib crates 2017-07-18 19:12:40 -05:00
Ryan Hunt
ed2c596d8d Update the version to 0.1.17 2017-07-18 19:02:47 -04:00
Ryan Hunt
1de07199b7 Allow generic specializations 2017-07-18 17:28:04 -04:00
Ryan Hunt
2a7099f808 Update the version to 0.1.16 2017-07-18 10:41:37 -04:00
Ryan Hunt
a7397b7f01 Make generic template specializations inherit publicly 2017-07-18 10:40:10 -04:00
Ryan Hunt
d159555b6a Update the version to 0.1.15 2017-07-18 01:47:51 -04:00
Ryan Hunt
2296119414 Don't include --std=c++11 in g++ invocations 2017-07-18 01:35:10 -04:00
Ryan Hunt
7db05061ee Update mangle.rs test expectations 2017-07-18 01:34:57 -04:00
Ryan Hunt
c35728c2ad Fix misplaced sources node 2017-07-18 01:25:05 -04:00
Ryan Hunt
cbd7b04133 Use a newer version of GCC and G++ and handle it in travis 2017-07-18 01:13:59 -04:00
Ryan Hunt
664bfb9726 Specify a newer version of GCC 2017-07-18 00:53:49 -04:00
Ryan Hunt
50eb3bac24 Only specialize types that are used 2017-07-18 00:14:41 -04:00
Ryan Hunt
86f3a1e38c Mention that any generics can now be used 2017-07-18 00:14:41 -04:00
Ryan Hunt
4ab62716b3 Explicitly specify C++ 11 for compile-tests 2017-07-18 00:14:41 -04:00
Ryan Hunt
b13ee2fc1f Add monomorphs for function return types 2017-07-18 00:14:41 -04:00
Ryan Hunt
cc16ee70ba Be more flexible with the language parameter 2017-07-17 23:09:56 -04:00
Ryan Hunt
5c7f88a361 Remove trailing comma 2017-07-17 22:59:05 -04:00
Ryan Hunt
58caa33f09 Put template specialization behind a config 2017-07-17 22:57:43 -04:00
Ryan Hunt
be9a8f4465 Rework std_lib test to make it more realistic 2017-07-17 22:52:31 -04:00
Ryan Hunt
984e888915 Code cleanup 2017-07-17 22:47:53 -04:00
Ryan Hunt
26e72a2d89 Ignore generic params completely in types 2017-07-17 22:39:59 -04:00
Ryan Hunt
3989383bb0 Allow nested monomorphed types 2017-07-17 22:37:00 -04:00
Ryan Hunt
00bf52ac6f Preload with common stdlib types 2017-07-17 20:16:47 -04:00
Ryan Hunt
25db6dd9ba Allow monomorphing opaque structs 2017-07-17 20:04:42 -04:00
Ryan Hunt
1e3c98b366 Revert to specializing before using typedefs 2017-07-17 19:42:50 -04:00
Ryan Hunt
4a3fddddf2 Formatting fixes for monomorphed structs 2017-07-17 19:33:13 -04:00
Ryan Hunt
c05e6b1c13 Fix for not detecting the root package 2017-07-17 19:32:50 -04:00
Ryan Hunt
eb3516677a Promote fn logs to be errors 2017-07-17 18:15:47 -04:00
Ryan Hunt
f9d78b5c83 Add support for generics 2017-07-17 02:41:35 -04:00
Ryan Hunt
ff52d0394d Change generic_params to be String
There was no reason they should have been PathRef.
2017-07-14 16:30:42 -04:00
Ryan Hunt
a8d638fc52 Update the version to 0.1.14 2017-07-11 14:07:07 -04:00
Ryan Hunt
1bd5f1e776 Don't use Cargo.lock in build scripts when config.parse.parse_deps = false 2017-07-11 11:23:26 -04:00
Ryan Hunt
3564ce1de8 Update Cargo.toml for 0.1.13 release 2017-07-06 12:31:27 -04:00
Ryan Hunt
054cd37acc Update the version to 0.1.13 2017-07-05 18:20:51 -04:00
Ryan Hunt
af045c6114 Include <cstdlib> for size_t
Fixes #22
2017-07-05 01:11:53 -05:00
Ryan Hunt
6e6014a90e Add some spaces in rename.rs 2017-07-05 01:06:31 -05:00
Ryan Hunt
d633bd4b1e One last formatting change to README.md, redux 2017-06-29 00:38:53 -04:00
Ryan Hunt
4a09343309 One last formatting change to README.md, again 2017-06-29 00:37:38 -04:00
Ryan Hunt
7590865ca6 One last formatting change 2017-06-29 00:29:18 -04:00
Ryan Hunt
b88fd711b8 Fix some formatting 2017-06-29 00:25:56 -04:00
Ryan Hunt
c9eadb883a Update the config documentation in README.md 2017-06-29 00:12:09 -04:00
Ryan Hunt
3fdeb4578b Allow multiple namespaces 2017-06-27 19:15:06 -04:00
Ryan Hunt
594cb219f4 Search for staticlib crate types in addition to lib crate types 2017-06-27 13:40:45 -04:00
Ryan Hunt
eb71d0daff Move parse configs to their own struct 2017-06-26 10:12:16 -04:00