| # For documentation, see: https://github.com/eqrion/cbindgen/blob/master/docs.md |
| |
| include_version = true |
| braces = "SameLine" |
| line_length = 100 |
| tab_width = 4 |
| language = "C++" |
| pragma_once = true |
| no_includes = true |
| sys_includes = ["stdint.h", "sys/types.h"] |
| header = """ |
| // This file is autogenerated by: |
| // cbindgen --config cbindgen.toml src/lib.rs -o include/lib.rs.h |
| // Don't modify manually. |
| """ |
| documentation = true |
| style = "tag" |
| namespaces = ["test", "rust"] |
| |
| [export] |
| item_types = ["globals", "enums", "structs", "unions", "typedefs", "opaque", "functions", "constants"] |
| |
| [parse] |
| parse_deps = true |
| include = ["doh"] |
| |
| [fn] |
| args = "auto" |
| |
| [struct] |
| associated_constants_in_body = true |
| |
| [enum] |
| add_sentinel = true |
| derive_helper_methods = true |
| derive_ostream = true |
| |
| [macro_expansion] |
| bitflags = true |