#==============================================================================
#
# cbindgen configuration for Pact Matching FFI
#
# For more information on cbindgen configuration, see:
# https://github.com/eqrion/cbindgen/blob/master/docs.md#cbindgentoml
#
#==============================================================================
# Generate bindings for the C language.
= "C"
# Wrap generated file in an include guard.
= "pact_matching_ffi_h"
# Note the version of cbindgen used to generate the header.
= true
# Wrap generated file in C++ compatibility code.
= true
# Generate documentation in Doxygen style.
= "doxy"
# Generate C structs as `typedef struct MyType {} MyType;`.
= "both"
# Header to put at the top of the file (required by Doxygen).
= """
/**
* @file
* @brief "An FFI interface to the `pact_matching` library, enabling cross-language use of Pact's core matching functionality."
*/
"""
# Warning to include saying the file is autogenerated.
= "/* Warning, this file is autogenerated by cbindgen. Don't modify this manually. */"
#==============================================================================
# Enum Rules
#------------------------------------------------------------------------------
[]
# Prefix enum variants with the name of the overall type.
= true
#==============================================================================
# Parsing Rules
#------------------------------------------------------------------------------
[]
# Parse dependencies.
= true
# Only include `pact_matching` and `pact_models` (nothing else).
= ["pact_matching", "pact_models"]
#==============================================================================
# Macro Expansion Rules
#------------------------------------------------------------------------------
[]
# Expand macros for `pact_matching_ffi`.
= ["pact_matching_ffi"]