From 467a44233894d177c5df444d98873d3c920007f4 Mon Sep 17 00:00:00 2001 From: Olivier Picaud Date: Mon, 8 May 2023 19:31:24 +0200 Subject: [PATCH] feat: being able to build pact_verifier_cli --- rust/BUILD.bazel | 8 ++++++++ rust/pact_verifier_cli/BUILD.bazel | 11 +++++++++++ 2 files changed, 19 insertions(+) create mode 100644 rust/pact_verifier_cli/BUILD.bazel diff --git a/rust/BUILD.bazel b/rust/BUILD.bazel index 68cd76792..746123056 100644 --- a/rust/BUILD.bazel +++ b/rust/BUILD.bazel @@ -6,3 +6,11 @@ filegroup( "@pact_verifier_cli" ], ) + +filegroup( + name = "pact_verifier_cli", + srcs = ["//pact_verifier_cli"], + visibility = ["//visibility:public"], + +) + diff --git a/rust/pact_verifier_cli/BUILD.bazel b/rust/pact_verifier_cli/BUILD.bazel new file mode 100644 index 000000000..ece2ba067 --- /dev/null +++ b/rust/pact_verifier_cli/BUILD.bazel @@ -0,0 +1,11 @@ +load("@crate_index//:defs.bzl", "aliases", "all_crate_deps") +load("@rules_rust//cargo:defs.bzl", "cargo_build_script") +load("@rules_rust//rust:defs.bzl", "rust_binary") + +rust_binary( + name = "pact_verifier_cli", + srcs = glob(["src/*.rs"]), + deps = all_crate_deps(normal = "True") + ["//pact_verifier"], + visibility = ["//visibility:public"], + +) \ No newline at end of file