#testing #pact #cdc

pact-plugin-driver

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

37 releases

Uses new Rust 2021

new 0.2.0 Dec 9, 2022
0.1.16 Nov 28, 2022
0.1.13 Oct 5, 2022
0.1.8 May 26, 2022
0.0.11 Nov 29, 2021

#75 in Hardware support

Download history 479/week @ 2022-08-19 314/week @ 2022-08-26 739/week @ 2022-09-02 918/week @ 2022-09-09 382/week @ 2022-09-16 402/week @ 2022-09-23 460/week @ 2022-09-30 318/week @ 2022-10-07 317/week @ 2022-10-14 536/week @ 2022-10-21 342/week @ 2022-10-28 1146/week @ 2022-11-04 823/week @ 2022-11-11 555/week @ 2022-11-18 786/week @ 2022-11-25 202/week @ 2022-12-02

2,501 downloads per month
Used in 9 crates (6 directly)

MIT license

150KB
3.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.

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.


lib.rs:

Pact plugin driver library for Rust

Dependencies

~18–29MB
~576K SLoC