#testing #pact #cdc

pact_models

Pact-Rust support library that provides the core models for dealing with Pact files

42 releases (5 stable)

Uses new Rust 2021

1.0.4 Jan 11, 2023
1.0.3 Dec 22, 2022
1.0.1 Nov 28, 2022
0.4.6 Nov 4, 2022
0.1.0 Jul 23, 2021

#63 in Algorithms

Download history 350/week @ 2022-10-07 332/week @ 2022-10-14 552/week @ 2022-10-21 384/week @ 2022-10-28 1217/week @ 2022-11-04 863/week @ 2022-11-11 584/week @ 2022-11-18 830/week @ 2022-11-25 269/week @ 2022-12-02 1358/week @ 2022-12-09 1497/week @ 2022-12-16 191/week @ 2022-12-23 252/week @ 2022-12-30 691/week @ 2023-01-06 243/week @ 2023-01-13 445/week @ 2023-01-20

1,658 downloads per month
Used in 16 crates (14 directly)

MIT license

1MB
19K SLoC

Pact Models

This library provides the core models for dealing with Pact files. It supports the V3 pact specification and V4 pact specification.

Online rust docs

Reading and writing Pact files

The Pact struct has methods to read and write pact JSON files. It supports all the specification versions up to V4, but will convert a V1, V1.1 and V2 spec file to a V3 format.


lib.rs:

The pact_models crate provides all the structs and traits required to model a Pact.

Dependencies

~8–17MB
~319K SLoC