296 Commits

Author SHA1 Message Date
Ryan Hunt
93541ddc21 Update version to 0.1.5 2017-04-18 03:17:39 -04:00
Ryan Hunt
5884671b59 Add support for 'enum-trailing-values' 2017-04-18 03:13:52 -04:00
Ryan Hunt
398ac473ce Add support for custom configs 2017-04-18 03:08:27 -04:00
Ryan Hunt
6dddb7e029 Revamp the directives system 2017-04-18 02:40:57 -04:00
Ryan Hunt
55b0f0af04 Handle primitive values better and support u16, i16 2017-04-18 01:05:40 -04:00
Ryan Hunt
46d65ded52 Add a try_map for cleaner conversions 2017-04-18 00:41:08 -04:00
Ryan Hunt
79bed0ac73 Update version to 0.1.4 2017-04-17 23:06:45 -04:00
Ryan Hunt
b86d9a9a62 Rename Library::build to Library::generate
It's called bindings generation not bindings building.
2017-04-17 23:02:34 -04:00
Ryan Hunt
a62e8086db Ignore build-script 2017-04-17 22:59:21 -04:00
Ryan Hunt
953d622639 Only pass Config into bindgen once 2017-04-17 22:57:31 -04:00
Ryan Hunt
7aef6c9d78 Simplify main 2017-04-17 22:42:51 -04:00
Ryan Hunt
ccc47555b8 Standardize naming of some types 2017-04-17 22:36:57 -04:00
Ryan Hunt
2bf0ca2762 Update the README for build script instructions 2017-04-17 22:26:18 -04:00
Ryan Hunt
e76b25701d Add an example for using a build script 2017-04-17 22:22:34 -04:00
Ryan Hunt
cedd1b3cc2 Add an opaque struct for enums that we can't convert
This is the right thing to do, especially if the enum has variants.
2017-04-17 22:02:21 -04:00
Ryan Hunt
c2ef487ac3 Allow enums with repr(u16), repr(u8) 2017-04-17 21:57:46 -04:00
Ryan Hunt
349b4f5c54 Update README and add some examples 2017-04-17 21:39:40 -04:00
Ryan Hunt
0a37a486ac Allow specializing more types 2017-04-17 21:22:23 -04:00
Ryan Hunt
9f73c8f84d Ignore struct fields that are generic params 2017-04-17 21:14:13 -04:00
Ryan Hunt
cb2bc78ddb Remove unneeded primitive check
We check this earlier in convert()
2017-04-17 20:47:06 -04:00
Ryan Hunt
c310472081 Lower the importance of missing crates and mods
These messages are important, but for the most part expected. They
are probably more useful as messages to look through when debugging.
2017-04-17 20:42:50 -04:00
Ryan Hunt
3785908a0f Handle specialization generic values as Type's 2017-04-17 20:41:03 -04:00
Ryan Hunt
549e46228f Move most src into bindgen, and add lib target 2017-04-17 20:22:14 -04:00
Ryan Hunt
0571ae1491 Output the correct version 2017-04-17 19:51:40 -04:00
Ryan Hunt
f44ebf2be1 Specify more relaxed dependency versions and bump the version 2017-04-17 19:49:17 -04:00
Ryan Hunt
0ae1c7ccc0 Add an option for including the cbindgen version 2017-04-17 12:41:19 -04:00
Ryan Hunt
d6750a6e34 Update Cargo.lock 2017-04-17 12:41:07 -04:00
Ryan Hunt
a68e0cc862 Change WebRender autogen warning and bump version 2017-04-13 22:57:38 -04:00
Ryan Hunt
c957afa333 Update version 2017-04-13 03:28:42 -04:00
Ryan Hunt
08b8872b08 Add support for directives 2017-04-13 03:19:52 -04:00
Ryan Hunt
69693783f1 Add struct operator generation to config 2017-04-13 01:15:20 -04:00
Ryan Hunt
3ebe9a333c Use log and allow specifying verbosity 2017-04-13 01:02:17 -04:00
Ryan Hunt
06c47f82ab Remove prebuilts and ignores 2017-04-13 00:40:17 -04:00
Ryan Hunt
00f2cc9157 Add a config system 2017-04-13 00:36:59 -04:00
Ryan Hunt
ef7d0ad071 Simplify the logs and put enums at the top of the output 2017-04-12 18:54:14 -04:00
Ryan Hunt
464121ce05 Fixup mistakes in converting to Write 2017-04-12 18:28:54 -04:00
Ryan Hunt
a6fd3c2ee8 Allow specifying an output file on the command line 2017-04-12 18:17:35 -04:00
Ryan Hunt
f900d81427 Use Write instead of string.push_str 2017-04-12 17:59:50 -04:00
Ryan Hunt
5faa1e0c37 Separate bindgen.rs into multiple files 2017-04-12 17:15:09 -04:00
Ryan Hunt
072d9b706e Use clap and allow binding a single source or a crate 2017-04-12 16:37:13 -04:00
Ryan Hunt
7c3f30338f Add license 2017-04-12 11:53:31 -04:00
Ryan Hunt
7a088303c3 Update Cargo.toml and Cargo.lock 2017-04-12 11:45:20 -04:00
Ryan Hunt
f043687f2c Update Cargo.toml and README 2017-04-12 11:42:43 -04:00
Ryan Hunt
0f9fec1e68 Refactor main.rs into bindgen.rs 2017-04-12 05:01:21 -04:00
Kartikaya Gupta
5a82ddcb50 Update readme file 2017-04-11 18:26:14 -04:00
Kartikaya Gupta
4a22d3ca93 Tone down the manual-edit warnings 2017-04-11 18:26:02 -04:00
Kartikaya Gupta
7c4352b763 Use a doc attribute instead of a custom attribute for destructor_safe because custom attributes aren't allowed in stable rust 2017-04-11 17:52:46 -04:00
Kartikaya Gupta
dee7784266 Remove accidentally added file 2017-04-11 17:51:44 -04:00
Kartikaya Gupta
cb0f612c3e Fix end-of-line whitespace in generated header 2017-04-11 15:03:22 -04:00
Kartikaya Gupta
2af9b76918 Add generated-file boilerplate. Fixes #4 2017-04-11 14:53:38 -04:00