#pact #cdc #testing

pact-plugin-driver

Pact support library that provides an interface for interacting with Pact plugins

55 releases

0.6.1 Apr 23, 2024
0.5.2 Apr 15, 2024
0.5.1 Jan 31, 2024
0.4.6 Dec 14, 2023
0.0.11 Nov 29, 2021

#53 in Hardware support

Download history 3667/week @ 2024-01-22 2308/week @ 2024-01-29 2979/week @ 2024-02-05 2469/week @ 2024-02-12 2685/week @ 2024-02-19 2479/week @ 2024-02-26 1921/week @ 2024-03-04 2767/week @ 2024-03-11 1982/week @ 2024-03-18 1119/week @ 2024-03-25 1044/week @ 2024-04-01 1605/week @ 2024-04-08 2834/week @ 2024-04-15 2191/week @ 2024-04-22 1245/week @ 2024-04-29 1745/week @ 2024-05-06

8,074 downloads per month
Used in 10 crates (6 directly)

MIT license

205KB
4.5K SLoC

Pact plugin driver library for Rust

Pact support library that provides an interface for interacting with Pact plugins

State of implementation

  • The ability to find plugins.
  • Load plugins and extract the plugin manifests that describe what the plugin provides.
  • Provide a catalogue of features provided by the plugins.
  • Provide a messaging bus to facilitate communication between the language implementation and the plugins.
  • Manage the plugin lifecycles.

Crate features

All features are enabled by default

  • datetime: Enables support of date and time expressions and generators. This will add the chronos crate as a dependency.
  • xml: Enables support for parsing XML documents. This feature will add the sxd-document crate as a dependency.

Building the Rust driver

The Rust driver is built with Cargo. The build can be run with cargo build, but there is a test DriverPactTest that requires a Protobuf plugin to work. Either skip or disable that test, or install the prototype Protobuf plugin before running the build.

The Protobuf compiler is required to be installed and available on the path.

Dependencies

~27–64MB
~1M SLoC