@@ -18,15 +18,20 @@ Usage
1818
1919Usage: ./bindgen [options] input.h
2020Options:
21- -h or --help Display help message
22- -l <name> Link name of the library
23- -o <output.rs> Write bindings to <output.rs> (default stdout)
24- -match <name> Only output bindings for definitions from files
25- whose name contains <name>
26- If multiple -match options are provided, files
27- matching any rule are bound to.
28- -builtins Output bindings for builtin definitions
29- (for example __builtin_va_list)
21+ -h or --help Display help message
22+ -l <name> Name of a library to link to, can be proivded multiple
23+ times
24+ -o <output.rs> Write bindings to <output.rs> (default stdout)
25+ -match <name> Only output bindings for definitions from files
26+ whose name contains <name>
27+ If multiple -match options are provided, files
28+ matching any rule are bound to.
29+ -builtins Output bindings for builtin definitions
30+ (for example __builtin_va_list)
31+ -abi <abi> Indicate abi of extern functions (default C)
32+ -allow-bitfields Don't fail if we encounter a bitfield
33+ (default is false, since rust does not support bitfields)
34+ -emit-clang-ast Output the ast (for debugging purposes)
3035
3136 Options other than stated above are passed to clang.
3237
0 commit comments