-
Notifications
You must be signed in to change notification settings - Fork 46
/
cbindgen-c++.toml
69 lines (49 loc) · 1.97 KB
/
cbindgen-c++.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#==============================================================================
#
# cbindgen configuration for Pact FFI
#
# For more information on cbindgen configuration, see:
# https://github.com/eqrion/cbindgen/blob/master/docs.md#cbindgentoml
#
#==============================================================================
# Generate bindings for the C language.
language = "C++"
# Wrap generated file in an include guard.
include_guard = "pact_ffi_h"
# Note the version of cbindgen used to generate the header.
include_version = true
# Wrap generated file in C++ compatibility code.
cpp_compat = false
# Generate documentation in Doxygen style.
documentation_style = "doxy"
# Generate C structs as `typedef struct MyType {} MyType;`.
style = "both"
# Header to put at the top of the file (required by Doxygen).
header = """
/**
* @file
* @brief "An FFI interface to the pact libraries, enabling cross-language use of Pact's core functionality."
*/
"""
# Warning to include saying the file is autogenerated.
autogen_warning = "/* Warning, this file is autogenerated by cbindgen. Don't modify this manually. */"
#==============================================================================
# Enum Rules
#------------------------------------------------------------------------------
[enum]
# Prefix enum variants with the name of the overall type.
prefix_with_name = true
#==============================================================================
# Parsing Rules
#------------------------------------------------------------------------------
[parse]
# Parse dependencies.
parse_deps = true
# Only include `pact_matching` and `pact_models` (nothing else).
include = ["pact_matching", "pact_models", "pact_verifier"]
#==============================================================================
# Macro Expansion Rules
#------------------------------------------------------------------------------
[parse.expand]
# Expand macros for `pact_matching_ffi`.
crates = ["pact_ffi"]