-
Notifications
You must be signed in to change notification settings - Fork 296
/
BUILD.bazel
73 lines (64 loc) · 1.83 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
load("@rules_rust//rust:defs.bzl", "rust_binary", "rust_test")
package(default_visibility = ["//visibility:public"])
DEPENDENCIES = [
"@crate_index//:anyhow",
"@crate_index//:axum",
"@crate_index//:bytes",
"@crate_index//:candid",
"@crate_index//:clap_4_0_0",
"@crate_index//:form_urlencoded",
"@crate_index//:futures",
"@crate_index//:http",
"@crate_index//:http-body",
"@crate_index//:hyper",
"@crate_index//:hyper-rustls",
"@crate_index//:itertools",
"@crate_index//:ic-agent",
"@crate_index//:ic-utils",
"@crate_index//:jemallocator",
"@crate_index//:opentelemetry",
"@crate_index//:opentelemetry-prometheus",
"@crate_index//:prometheus",
"@crate_index//:rustls",
"@crate_index//:rustls-native-certs",
"@crate_index//:rustls-pemfile",
"@crate_index//:tokio-util",
"@crate_index//:tower",
"@crate_index//:tower-http",
"@crate_index//:tracing",
"@crate_index//:tracing-subscriber",
"@crate_index//:tokio",
"@crate_index//:ic-response-verification",
"@crate_index//:ic-http-certification",
"@crate_index//:thiserror",
]
MACRO_DEPENDENCIES = [
"@crate_index//:async-trait",
]
DEV_DEPENDENCIES = [
"@crate_index//:tokio-test",
]
MACRO_DEV_DEPENDENCIES = []
ALIASES = {}
rust_binary(
name = "icx-proxy",
srcs = glob(["src/**/*.rs"]),
aliases = ALIASES,
proc_macro_deps = MACRO_DEPENDENCIES,
deps = DEPENDENCIES,
)
rust_binary(
name = "icx-proxy-dev",
srcs = glob(["src/**/*.rs"]),
aliases = ALIASES,
crate_features = ["dev_proxy"],
proc_macro_deps = MACRO_DEPENDENCIES,
deps = DEPENDENCIES,
)
rust_test(
name = "icx_proxy_test",
aliases = ALIASES,
crate = ":icx-proxy",
proc_macro_deps = MACRO_DEPENDENCIES + MACRO_DEV_DEPENDENCIES,
deps = DEPENDENCIES + DEV_DEPENDENCIES,
)