-
Notifications
You must be signed in to change notification settings - Fork 5
/
BUILD.bazel
45 lines (40 loc) · 1.09 KB
/
BUILD.bazel
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
load("@//rs:oci_images.bzl", "rust_binary_oci_image_rules")
load("@crate_index_dre//:defs.bzl", "aliases", "all_crate_deps")
load("@rules_rust//rust:defs.bzl", "rust_binary", "rust_test")
# Define a custom rule to copy the .zip file as a data dependency
DEPS = [
"//rs/ic-observability/service-discovery",
"//rs/ic-management-types",
"//rs/ic-management-backend:ic-management-backend-lib",
"//rs/cli:dre-lib"]
rust_binary(
name = "rollout-controller",
srcs = glob(["src/**/*.rs"]),
aliases = aliases(),
proc_macro_deps = all_crate_deps(
proc_macro = True,
),
stamp = 1,
deps = all_crate_deps(
normal = True,
) + DEPS,
)
rust_binary_oci_image_rules(
name = "oci_image",
src = ":rollout-controller",
base_image = "@debian-slim",
)
rust_test(
name = "unit_test",
aliases = aliases(
normal_dev = True,
proc_macro_dev = True,
),
crate = ":rollout-controller",
proc_macro_deps = all_crate_deps(
proc_macro_dev = True,
),
deps = all_crate_deps(
normal_dev = True,
) + DEPS,
)