| Crates.io | pact |
| lib.rs | pact |
| version | 0.4.1 |
| created_at | 2023-10-16 00:26:24.549874+00 |
| updated_at | 2025-09-22 15:48:02.787144+00 |
| description | pact-foundation placeholder crate |
| homepage | https://www.pact.io |
| repository | https://github.com/pact-foundation/pact-reference/tree/main/rust |
| max_upload_size | |
| id | 1004207 |
| size | 10,033 |
Pact implementation written in Rust.
This project provides a Pact implementation written in Rust. It supports the V3 Pact specification and V4 Pact specification and provides shared libraries that can be used in other languages via foreign function interfaces (FFI).
This is currently a placeholder crate
Note: Versions prior to 0.4.0, contain code which has now migrated
to the codas crate.
The ecosystem is built up of multiple different crates, each which serve a different purpose.
All active crates are listed below.
This is a library that provides the Pact models and functions for reading and writing pact files.
This is a library that provides the Pact functions for matching requests and responses.
This is a library that implements the in-process mock server for matching HTTP requests and generating responses from a pact file. It implements the V3 Pact specification and V4 Pact specification
This is a library that provides the Pact consumer test support and DSL for use in Rust projects.
This library provides support for verifying a provider against pact files.
This is a library that implements exported functions using C bindings for use in foreign languages.
A command line application that provides both a restful web api and command line interface to run pact mock servers and is able to manage multiple mock servers. The lifecycle of each mock server can be controlled by the restful web api or through the command line interface. It implements the V4 Pact specification.
Command line executable that uses the pact_verifier to be able to verify a running provider against pact files.
A support library that provides an interface for interacting with Pact plugins
Command line executable to manage and install Pact plugins.
Command line executable that provides a server that can generate responses based on pact files. It implements the V4 Pact specification.
See CONTRIBUTING (PRs are always welcome!).
Rust crate documentation is published to the Rust documentation site.
Additional documentation can be found at the main Pact website.
or
The code in this project is licensed under a MIT license. See LICENSE.