Crate pact_ffi

source ·
Expand description

A crate exposing the pact APIs to other languages via a C Foreign Function Interface.

Modules§

  • Tools for FFI error reporting and handling.
  • Sets up a log sink to view logs from the FFI.
  • Module provides FFI functions to match values using Pact matching rules
  • The mock_server module provides a number of exported functions using C bindings for controlling a mock server. These can be used in any language that supports C bindings.
  • FFI functions to support Pact models.
  • The plugins module provides exported functions using C bindings for using plugins with Pact tests.
  • The verifier module provides a number of exported functions using C bindings for controlling the pact verification process. These can be used in any language that supports C bindings.

Macros§

  • Get a mutable reference from a raw pointer
  • Get an immutable reference from a raw pointer
  • Construct a CStr safely with null checks.
  • Construct a &str safely with null checks.

Structs§

Enums§

  • Enum that defines the different types of mismatches that can occur.

Functions§