pact-plugin-driver

Crates.iopact-plugin-driver
lib.rspact-plugin-driver
version0.7.1
sourcesrc
created_at2021-08-23 05:32:24.636292
updated_at2024-09-03 05:40:22.873804
descriptionPact support library that provides an interface for interacting with Pact plugins
homepagehttp://www.pact.io
repositoryhttps://github.com/pact-foundation/pact-plugins
max_upload_size
id440990
size273,341
Ronald Holshausen (rholshausen)

documentation

https://docs.rs/pact-plugin-driver

README

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.

Commit count: 935

cargo fmt