automerge/automerge-c/cbindgen.toml
Jason Kankiewicz f52b9a13f7 Added Doxygen documentation generation.
Renamed `AMDatatype` to `AmDataType`.
Reorganized the `AmDataType` tags.
Renamed `AMfree()` to `AMdestroy()`.
Renamed `AMclone()` to `AMdup()`.
2022-02-24 14:39:38 -05:00

38 lines
877 B
TOML

header = """
/** \\file
* All constants, functions and types in the Automerge library's C API.
*/
"""
include_guard = "automerge_h"
autogen_warning = "/* Warning, this file is autogenerated by cbindgen. Don't modify this manually. */"
language = "C"
includes = []
sys_includes = ["stddef.h", "stdint.h", "stdbool.h"]
no_includes = true
line_length = 140
documentation = true
documentation_style = "doxy"
after_includes = """\n
/**
* \\defgroup enumerations Public Enumerations
Symbolic names for integer constants.
*/
/**
* \\memberof AMdoc
* \\brief The root object of an `AMdoc` struct.
*/
#define AM_ROOT NULL
"""
usize_is_size_t = true
[enum]
rename_variants = "ScreamingSnakeCase"
enum_class = true
prefix_with_name = true
derive_const_casts = true
must_use = "MUST_USE_ENUM"
[export]
item_types = ["enums", "structs", "opaque", "constants", "functions"]