1083 Commits

Author SHA1 Message Date
Ryan Hunt
5d62555ee1 Use inline mods as folders when searching for a new mod 2017-06-21 03:41:40 -04:00
Ryan Hunt
42454fede2 Make build scripts more ergonomic
Fixes #19
2017-06-21 03:33:45 -04:00
Ryan Hunt
060a79f014 Add vertical function formatting for cdecl
Fixes #14
2017-06-21 03:21:46 -04:00
Ryan Hunt
6e7d64fde0 Use Cargo.lock to disambiguate package versions 2017-06-21 02:28:18 -04:00
Ryan Hunt
932da81209 Check config expand first before the whitelist and blacklist 2017-06-21 01:27:22 -04:00
Ryan Hunt
370ed26906 Find a cbindgen.toml from the binding crate directory 2017-06-21 01:18:50 -04:00
Ryan Hunt
0cd95007a6 Add an optional whitelist for crate parsing 2017-06-20 11:16:17 -04:00
Ryan Hunt
01d88aa09b Allow excluding specific crates from being parsed 2017-06-20 01:48:34 -04:00
Ryan Hunt
a957bc2787 Add source code licenses 2017-06-20 01:28:18 -04:00
Ryan Hunt
4064a09238 Do a bunch of clean up and add some comments 2017-06-20 01:25:42 -04:00
Ryan Hunt
9d10cd96dc Use Cargo.toml to find the root package name
Fixes #18
2017-06-19 22:43:20 -04:00
Ryan Hunt
0a891a5da0 Improve some error messages
Fixes #17
2017-06-19 22:43:20 -04:00
Ryan Hunt
bb5449d009 Merge pull request #21 from mitsuhiko/feature/enum-prefixes
Added QualifiedScreamingSnakeCase
2017-06-19 11:07:21 -05:00
Armin Ronacher
82730cde6d Added QualifiedScreamingSnakeCase 2017-06-16 15:04:10 +02:00
Armin Ronacher
d85fe5d4a7 Fixed compiler error on stable rust 2017-06-16 14:48:11 +02:00
Ryan Hunt
733dbe780b Remove doc test from cargo_metadata.rs 2017-05-24 21:52:30 -04:00
Ryan Hunt
c5741f6c09 Try and infer the binding crate name 2017-05-24 21:23:21 -04:00
Ryan Hunt
49bd8605f6 Improve the error messages for parsing 2017-05-24 21:23:21 -04:00
Ryan Hunt
3f8229efb7 Use a whitelist for deciding when to use rustc --pretty=expanded 2017-05-24 21:23:21 -04:00
Ryan Hunt
b6d9b9ac97 Refine the crates that are allowed to export functions 2017-05-24 21:23:21 -04:00
Ryan Hunt
99d5fbee9c Fix dependency cycle detection 2017-05-24 21:23:21 -04:00
Ryan Hunt
2bd4148cab Add a trace logging setting 2017-05-24 21:23:21 -04:00
Ryan Hunt
ac6e8bb17b Allow type specializations to be generic 2017-05-24 21:23:21 -04:00
Ryan Hunt
52e90383d9 Handle PhantomData with any type parameter 2017-05-24 21:23:21 -04:00
Ryan Hunt
9da86ea5bd Recursively parse inline mods 2017-05-24 21:22:57 -04:00
Ryan Hunt
e40c79c06e Use rustc --pretty=expanded for parsing crates 2017-05-24 21:22:43 -04:00
Ryan Hunt
d826d98b9e Use cargo metadata to find crate dependencies 2017-05-24 21:22:29 -04:00
Ryan Hunt
409755bc5a Use cdecl for formatting function declarations 2017-05-23 14:54:24 -04:00
Ryan Hunt
98823cea15 Reformat library to make it easier to rustfmt 2017-05-23 03:02:18 -04:00
Ryan Hunt
72cd31b117 Update the version to 0.1.10 2017-05-13 22:47:12 -04:00
Ryan Hunt
19a0e1336e Add tests for zero sized types
Fixes #6
2017-05-13 22:39:29 -04:00
Ryan Hunt
b36cc69274 Improve support for zero sized types 2017-05-13 22:39:19 -04:00
Ryan Hunt
efe4af7fb3 Rename resolve to apply_renaming 2017-05-13 22:39:19 -04:00
Ryan Hunt
e74b752501 Improve the support for C language output
Fixes #8
2017-05-13 22:39:19 -04:00
Ryan Hunt
21b299e749 Rename syn_helpers to utilities 2017-05-13 20:33:18 -04:00
Ryan Hunt
8be1b07eb7 Remove use syn::* 2017-05-13 20:31:16 -04:00
Ryan Hunt
c719a9cd72 Cleanup rule selection 2017-05-13 20:22:38 -04:00
Ryan Hunt
2c244f3f4f Fix some doc comments 2017-05-11 13:47:52 -04:00
Ryan Hunt
b61da1789f Remove unneeded .gitignore entries 2017-05-11 04:26:13 -04:00
Ryan Hunt
2f655fa870 Update the version to 0.1.9 2017-05-11 04:21:06 -04:00
Ryan Hunt
38fea4ee10 Write some documentation 2017-05-11 04:16:48 -04:00
Ryan Hunt
b04df026d9 Rename directive to annotation 2017-05-11 03:57:57 -04:00
Ryan Hunt
23380c3e77 Remove the fn-ptr compile-test 2017-05-11 03:46:08 -04:00
Ryan Hunt
ec1dfddcc5 Improve cdecl generation
Fixes #4
2017-05-11 03:44:55 -04:00
Ryan Hunt
41b6a2eff8 Add travis-ci badge to Cargo.toml 2017-05-11 01:36:31 -04:00
Ryan Hunt
04370b20bc Update Cargo.toml 2017-05-11 01:34:43 -04:00
Ryan Hunt
a711eb45b2 Move tests to compile-tests 2017-05-11 01:34:43 -04:00
Ryan Hunt
0aada672cd Add a test harness
Fixes #3
2017-05-11 01:16:27 -04:00
Ryan Hunt
38db2e295c Update version to 0.1.8 2017-05-09 18:17:05 -04:00
Ryan Hunt
2a212dba57 Only resolve items once 2017-05-09 18:17:05 -04:00