• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Customizing the Generated Bindings
2
3The translation of classes, structs, enums, and typedefs can be adjusted in a
4few ways:
5
61. By using the `bindgen::Builder`'s configuration methods, when using `bindgen`
7   as a library.
8
92. By passing extra flags and options to the `bindgen` executable.
10
113. By adding an annotation comment to the C/C++ source code. Annotations are
12   specially formatted HTML tags inside doxygen style comments:
13
14     * For single line comments:
15       ```c
16       /// <div rustbindgen></div>
17       ```
18
19     * For multi-line comments:
20       ```c
21       /**
22        * <div rustbindgen></div>
23        */
24       ```
25
26We'll leave the nitty-gritty details to
27the [docs.rs API reference](https://docs.rs/bindgen) and `bindgen --help`, but
28provide higher level concept documentation here.
29