├── .gitignore ├── .travis.yml ├── Cargo.toml ├── LICENSE ├── README.md ├── src ├── bgmacro.rs ├── bin │ └── bindgen.rs ├── clang.rs ├── clangll.rs ├── gen.rs ├── lib.rs ├── parser.rs └── types.rs └── tests ├── headers ├── builtin_va_list.h ├── decl_ptr_to_array.h ├── forward_declared_struct.h ├── func_proto.h ├── func_ptr.h ├── func_ptr_in_struct.h ├── func_with_array_arg.h ├── func_with_func_ptr_arg.h ├── struct_containing_forward_declared_struct.h ├── struct_with_anon_struct.h ├── struct_with_anon_struct_array.h ├── struct_with_anon_struct_pointer.h ├── struct_with_anon_union.h ├── struct_with_anon_unnamed_struct.h ├── struct_with_anon_unnamed_union.h ├── struct_with_bitfields.h ├── struct_with_nesting.h ├── struct_with_struct.h ├── union_with_anon_struct.h ├── union_with_anon_struct_bitfield.h ├── union_with_anon_union.h ├── union_with_anon_unnamed_struct.h ├── union_with_anon_unnamed_union.h └── union_with_nesting.h ├── support.rs ├── test_builtins.rs ├── test_cmath.rs ├── test_decl.rs ├── test_func.rs ├── test_struct.rs ├── test_union.rs └── tests.rs /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelwu/rust-bindgen/HEAD/.gitignore -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelwu/rust-bindgen/HEAD/.travis.yml -------------------------------------------------------------------------------- /Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelwu/rust-bindgen/HEAD/Cargo.toml -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelwu/rust-bindgen/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelwu/rust-bindgen/HEAD/README.md -------------------------------------------------------------------------------- /src/bgmacro.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelwu/rust-bindgen/HEAD/src/bgmacro.rs -------------------------------------------------------------------------------- /src/bin/bindgen.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelwu/rust-bindgen/HEAD/src/bin/bindgen.rs -------------------------------------------------------------------------------- /src/clang.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelwu/rust-bindgen/HEAD/src/clang.rs -------------------------------------------------------------------------------- /src/clangll.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelwu/rust-bindgen/HEAD/src/clangll.rs -------------------------------------------------------------------------------- /src/gen.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelwu/rust-bindgen/HEAD/src/gen.rs -------------------------------------------------------------------------------- /src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelwu/rust-bindgen/HEAD/src/lib.rs -------------------------------------------------------------------------------- /src/parser.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelwu/rust-bindgen/HEAD/src/parser.rs -------------------------------------------------------------------------------- /src/types.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelwu/rust-bindgen/HEAD/src/types.rs -------------------------------------------------------------------------------- /tests/headers/builtin_va_list.h: -------------------------------------------------------------------------------- 1 | #include "stdarg.h" 2 | 3 | struct a 4 | { 5 | va_list b; 6 | }; -------------------------------------------------------------------------------- /tests/headers/decl_ptr_to_array.h: -------------------------------------------------------------------------------- 1 | int (*foo)[1]; 2 | -------------------------------------------------------------------------------- /tests/headers/forward_declared_struct.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelwu/rust-bindgen/HEAD/tests/headers/forward_declared_struct.h -------------------------------------------------------------------------------- /tests/headers/func_proto.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelwu/rust-bindgen/HEAD/tests/headers/func_proto.h -------------------------------------------------------------------------------- /tests/headers/func_ptr.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelwu/rust-bindgen/HEAD/tests/headers/func_ptr.h -------------------------------------------------------------------------------- /tests/headers/func_ptr_in_struct.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelwu/rust-bindgen/HEAD/tests/headers/func_ptr_in_struct.h -------------------------------------------------------------------------------- /tests/headers/func_with_array_arg.h: -------------------------------------------------------------------------------- 1 | void f(int x[2]); 2 | -------------------------------------------------------------------------------- /tests/headers/func_with_func_ptr_arg.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelwu/rust-bindgen/HEAD/tests/headers/func_with_func_ptr_arg.h -------------------------------------------------------------------------------- /tests/headers/struct_containing_forward_declared_struct.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelwu/rust-bindgen/HEAD/tests/headers/struct_containing_forward_declared_struct.h -------------------------------------------------------------------------------- /tests/headers/struct_with_anon_struct.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelwu/rust-bindgen/HEAD/tests/headers/struct_with_anon_struct.h -------------------------------------------------------------------------------- /tests/headers/struct_with_anon_struct_array.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelwu/rust-bindgen/HEAD/tests/headers/struct_with_anon_struct_array.h -------------------------------------------------------------------------------- /tests/headers/struct_with_anon_struct_pointer.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelwu/rust-bindgen/HEAD/tests/headers/struct_with_anon_struct_pointer.h -------------------------------------------------------------------------------- /tests/headers/struct_with_anon_union.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelwu/rust-bindgen/HEAD/tests/headers/struct_with_anon_union.h -------------------------------------------------------------------------------- /tests/headers/struct_with_anon_unnamed_struct.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelwu/rust-bindgen/HEAD/tests/headers/struct_with_anon_unnamed_struct.h -------------------------------------------------------------------------------- /tests/headers/struct_with_anon_unnamed_union.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelwu/rust-bindgen/HEAD/tests/headers/struct_with_anon_unnamed_union.h -------------------------------------------------------------------------------- /tests/headers/struct_with_bitfields.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelwu/rust-bindgen/HEAD/tests/headers/struct_with_bitfields.h -------------------------------------------------------------------------------- /tests/headers/struct_with_nesting.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelwu/rust-bindgen/HEAD/tests/headers/struct_with_nesting.h -------------------------------------------------------------------------------- /tests/headers/struct_with_struct.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelwu/rust-bindgen/HEAD/tests/headers/struct_with_struct.h -------------------------------------------------------------------------------- /tests/headers/union_with_anon_struct.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelwu/rust-bindgen/HEAD/tests/headers/union_with_anon_struct.h -------------------------------------------------------------------------------- /tests/headers/union_with_anon_struct_bitfield.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelwu/rust-bindgen/HEAD/tests/headers/union_with_anon_struct_bitfield.h -------------------------------------------------------------------------------- /tests/headers/union_with_anon_union.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelwu/rust-bindgen/HEAD/tests/headers/union_with_anon_union.h -------------------------------------------------------------------------------- /tests/headers/union_with_anon_unnamed_struct.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelwu/rust-bindgen/HEAD/tests/headers/union_with_anon_unnamed_struct.h -------------------------------------------------------------------------------- /tests/headers/union_with_anon_unnamed_union.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelwu/rust-bindgen/HEAD/tests/headers/union_with_anon_unnamed_union.h -------------------------------------------------------------------------------- /tests/headers/union_with_nesting.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelwu/rust-bindgen/HEAD/tests/headers/union_with_nesting.h -------------------------------------------------------------------------------- /tests/support.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelwu/rust-bindgen/HEAD/tests/support.rs -------------------------------------------------------------------------------- /tests/test_builtins.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelwu/rust-bindgen/HEAD/tests/test_builtins.rs -------------------------------------------------------------------------------- /tests/test_cmath.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelwu/rust-bindgen/HEAD/tests/test_cmath.rs -------------------------------------------------------------------------------- /tests/test_decl.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelwu/rust-bindgen/HEAD/tests/test_decl.rs -------------------------------------------------------------------------------- /tests/test_func.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelwu/rust-bindgen/HEAD/tests/test_func.rs -------------------------------------------------------------------------------- /tests/test_struct.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelwu/rust-bindgen/HEAD/tests/test_struct.rs -------------------------------------------------------------------------------- /tests/test_union.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelwu/rust-bindgen/HEAD/tests/test_union.rs -------------------------------------------------------------------------------- /tests/tests.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelwu/rust-bindgen/HEAD/tests/tests.rs --------------------------------------------------------------------------------