-
Notifications
You must be signed in to change notification settings - Fork 404
Expand file tree
/
Copy pathBUILD.bazel
More file actions
119 lines (114 loc) · 3.4 KB
/
Copy pathBUILD.bazel
File metadata and controls
119 lines (114 loc) · 3.4 KB
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
load("@rules_rust//rust:defs.bzl", "rust_doc", "rust_library", "rust_test")
load("//bazel:defs.bzl", "rust_bench")
package(default_visibility = ["//visibility:public"])
rust_library(
name = "consensus",
srcs = glob(["src/**/*.rs"]),
crate_features = select({
"//conditions:default": [],
}),
crate_name = "ic_https_outcalls_consensus",
proc_macro_deps = [
# Keep sorted.
"@crate_index//:strum_macros",
],
version = "0.9.0",
deps = [
# Keep sorted.
"//packages/ic-error-types",
"//rs/consensus/utils",
"//rs/interfaces",
"//rs/interfaces/adapter_client",
"//rs/interfaces/registry",
"//rs/interfaces/state_manager",
"//rs/monitoring/logger",
"//rs/monitoring/metrics",
"//rs/protobuf",
"//rs/registry/helpers",
"//rs/registry/subnet_type",
"//rs/replicated_state",
"//rs/types/cycles",
"//rs/types/management_canister_types",
"//rs/types/types",
"@crate_index//:candid",
"@crate_index//:hex",
"@crate_index//:prometheus",
"@crate_index//:rand",
"@crate_index//:slog",
],
)
rust_doc(
name = "ic_https_outcalls_consensus_doc",
crate = ":consensus",
)
rust_test(
name = "ic_https_outcalls_consensus_test",
timeout = "long",
crate = ":consensus",
crate_features = ["proptest"],
deps = [
# Keep sorted.
"//packages/ic-error-types",
"//rs/artifact_pool",
"//rs/consensus/mocks",
"//rs/consensus/utils",
"//rs/interfaces",
"//rs/interfaces/adapter_client",
"//rs/interfaces/mocks",
"//rs/interfaces/registry",
"//rs/interfaces/state_manager",
"//rs/monitoring/logger",
"//rs/monitoring/metrics",
"//rs/protobuf",
"//rs/registry/helpers",
"//rs/registry/keys",
"//rs/registry/subnet_features",
"//rs/registry/subnet_type",
"//rs/replicated_state",
"//rs/test_utilities",
"//rs/test_utilities/consensus",
"//rs/test_utilities/logger",
"//rs/test_utilities/registry",
"//rs/test_utilities/state",
"//rs/test_utilities/time",
"//rs/test_utilities/types",
"//rs/types/cycles",
"//rs/types/management_canister_types",
"//rs/types/types",
"@crate_index//:assert_matches",
"@crate_index//:candid",
"@crate_index//:hex",
"@crate_index//:mockall",
"@crate_index//:prometheus",
"@crate_index//:proptest",
"@crate_index//:rand",
"@crate_index//:rand_chacha",
"@crate_index//:slog",
"@crate_index//:strum",
],
)
rust_bench(
name = "payload_validation_bench",
testonly = True,
srcs = ["benches/payload_validation.rs"],
pin_cpu = True,
deps = [
# Keep sorted.
":consensus",
"//rs/config",
"//rs/consensus/mocks",
"//rs/crypto/temp_crypto",
"//rs/interfaces",
"//rs/interfaces/registry",
"//rs/interfaces/state_manager",
"//rs/monitoring/logger",
"//rs/monitoring/metrics",
"//rs/registry/subnet_features",
"//rs/test_utilities",
"//rs/test_utilities/registry",
"//rs/test_utilities/state",
"//rs/test_utilities/types",
"//rs/types/types",
"@crate_index//:criterion",
],
)