pact-plugin-driver 1.0.0-beta.2

Pact support library that provides an interface for interacting with Pact plugins
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use std::env;

fn main() -> Result<(), Box<dyn std::error::Error>> {
  if env::var_os("PACT_PLUGIN_BUILD_PROTOBUFS").is_some() {
    tonic_prost_build::configure().compile_protos(
      &[
        "../../../proto/plugin.proto",
        "../../../proto/plugin_v2.proto",
      ],
      &["../../../proto"],
    )?
  }
  Ok(())
}