Skip to content

Commit 91d0cbd

Browse files
committed
Update readme
1 parent ca135f7 commit 91d0cbd

File tree

1 file changed

+14
-9
lines changed

1 file changed

+14
-9
lines changed

README.txt

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,20 @@ Usage
1818

1919
Usage: ./bindgen [options] input.h
2020
Options:
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

Comments
 (0)