pact-plugin-driver 0.0.0

Pact support library that interface for interacting with Pact plugins
Documentation
1
2
3
4
5
6
7
8
9
use std::path::PathBuf;
use std::env;

fn main() -> Result<(), Box<dyn std::error::Error>> {
  let proto_file = PathBuf::from(env::var("CARGO_MANIFEST_DIR")?)
    .join("plugin.proto").canonicalize()?;
  tonic_build::compile_protos(proto_file.to_string_lossy().to_string())?;
  Ok(())
}