forked from web3infra-foundation/libra
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBUCK
More file actions
250 lines (243 loc) · 12.1 KB
/
BUCK
File metadata and controls
250 lines (243 loc) · 12.1 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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
# @generated by `cargo buckal`
load("@buckal//:cargo_manifest.bzl", "cargo_manifest")
load("@buckal//:wrapper.bzl", "buildscript_run", "rust_binary", "rust_library")
filegroup(
name = "libra-vendor",
srcs = glob(["**/**"]),
out = "vendor",
)
cargo_manifest(
name = "libra-manifest",
vendor = ":libra-vendor",
)
rust_binary(
name = "libra",
srcs = [":libra-vendor"],
crate = "libra",
crate_root = "vendor/src/main.rs",
edition = "2024",
features = ["default"],
rustc_flags = ["@$(location :libra-manifest[env_flags])"],
visibility = ["PUBLIC"],
deps = [
"//third-party/rust/crates/anyhow/1.0.100:anyhow",
"//third-party/rust/crates/byte-unit/5.2.0:byte-unit",
"//third-party/rust/crates/byteorder/1.5.0:byteorder",
"//third-party/rust/crates/bytes/1.11.0:bytes",
"//third-party/rust/crates/chrono/0.4.42:chrono",
"//third-party/rust/crates/clap/4.5.53:clap",
"//third-party/rust/crates/colored/3.0.0:colored",
"//third-party/rust/crates/crc32fast/1.5.0:crc32fast",
"//third-party/rust/crates/diffs/0.5.1:diffs",
"//third-party/rust/crates/dirs/5.0.1:dirs",
"//third-party/rust/crates/flate2/1.1.5:flate2",
"//third-party/rust/crates/futures-util/0.3.31:futures-util",
"//third-party/rust/crates/futures/0.3.31:futures",
"//third-party/rust/crates/git-internal/0.4.0:git-internal",
"//third-party/rust/crates/hex/0.4.3:hex",
"//third-party/rust/crates/http/1.4.0:http",
"//third-party/rust/crates/ignore/0.4.25:ignore",
"//third-party/rust/crates/indicatif/0.18.3:indicatif",
"//third-party/rust/crates/infer/0.19.0:infer",
"//third-party/rust/crates/lazy_static/1.5.0:lazy_static",
"//third-party/rust/crates/lru-mem/0.3.0:lru-mem",
"//third-party/rust/crates/once_cell/1.21.3:once_cell",
"//third-party/rust/crates/pager/0.16.1:pager",
"//third-party/rust/crates/path-absolutize/3.1.1:path-absolutize",
"//third-party/rust/crates/pathdiff/0.2.3:pathdiff",
"//third-party/rust/crates/regex/1.12.2:regex",
"//third-party/rust/crates/reqwest/0.12.24:reqwest",
"//third-party/rust/crates/ring/0.17.14:ring",
"//third-party/rust/crates/rpassword/7.4.0:rpassword",
"//third-party/rust/crates/scopeguard/1.2.0:scopeguard",
"//third-party/rust/crates/sea-orm/1.1.19:sea-orm",
"//third-party/rust/crates/serde/1.0.228:serde",
"//third-party/rust/crates/serde_json/1.0.145:serde_json",
"//third-party/rust/crates/sha1/0.10.6:sha1",
"//third-party/rust/crates/similar/2.7.0:similar",
"//third-party/rust/crates/thiserror/2.0.17:thiserror",
"//third-party/rust/crates/tokio-util/0.7.17:tokio-util",
"//third-party/rust/crates/tokio/1.48.0:tokio",
"//third-party/rust/crates/tracing-subscriber/0.3.22:tracing-subscriber",
"//third-party/rust/crates/tracing/0.1.44:tracing",
"//third-party/rust/crates/url/2.5.7:url",
"//third-party/rust/crates/walkdir/2.5.0:walkdir",
"//third-party/rust/crates/wax/0.6.0:wax",
":liblibra",
],
)
rust_library(
name = "liblibra",
srcs = [":libra-vendor"],
crate = "libra",
crate_root = "vendor/src/lib.rs",
edition = "2024",
features = ["default"],
rustc_flags = ["@$(location :libra-manifest[env_flags])"],
visibility = ["PUBLIC"],
deps = [
"//third-party/rust/crates/anyhow/1.0.100:anyhow",
"//third-party/rust/crates/byte-unit/5.2.0:byte-unit",
"//third-party/rust/crates/byteorder/1.5.0:byteorder",
"//third-party/rust/crates/bytes/1.11.0:bytes",
"//third-party/rust/crates/chrono/0.4.42:chrono",
"//third-party/rust/crates/clap/4.5.53:clap",
"//third-party/rust/crates/colored/3.0.0:colored",
"//third-party/rust/crates/crc32fast/1.5.0:crc32fast",
"//third-party/rust/crates/diffs/0.5.1:diffs",
"//third-party/rust/crates/dirs/5.0.1:dirs",
"//third-party/rust/crates/flate2/1.1.5:flate2",
"//third-party/rust/crates/futures-util/0.3.31:futures-util",
"//third-party/rust/crates/futures/0.3.31:futures",
"//third-party/rust/crates/git-internal/0.4.0:git-internal",
"//third-party/rust/crates/hex/0.4.3:hex",
"//third-party/rust/crates/http/1.4.0:http",
"//third-party/rust/crates/ignore/0.4.25:ignore",
"//third-party/rust/crates/indicatif/0.18.3:indicatif",
"//third-party/rust/crates/infer/0.19.0:infer",
"//third-party/rust/crates/lazy_static/1.5.0:lazy_static",
"//third-party/rust/crates/lru-mem/0.3.0:lru-mem",
"//third-party/rust/crates/once_cell/1.21.3:once_cell",
"//third-party/rust/crates/pager/0.16.1:pager",
"//third-party/rust/crates/path-absolutize/3.1.1:path-absolutize",
"//third-party/rust/crates/pathdiff/0.2.3:pathdiff",
"//third-party/rust/crates/regex/1.12.2:regex",
"//third-party/rust/crates/reqwest/0.12.24:reqwest",
"//third-party/rust/crates/ring/0.17.14:ring",
"//third-party/rust/crates/rpassword/7.4.0:rpassword",
"//third-party/rust/crates/scopeguard/1.2.0:scopeguard",
"//third-party/rust/crates/sea-orm/1.1.19:sea-orm",
"//third-party/rust/crates/serde/1.0.228:serde",
"//third-party/rust/crates/serde_json/1.0.145:serde_json",
"//third-party/rust/crates/sha1/0.10.6:sha1",
"//third-party/rust/crates/similar/2.7.0:similar",
"//third-party/rust/crates/thiserror/2.0.17:thiserror",
"//third-party/rust/crates/tokio-util/0.7.17:tokio-util",
"//third-party/rust/crates/tokio/1.48.0:tokio",
"//third-party/rust/crates/tracing-subscriber/0.3.22:tracing-subscriber",
"//third-party/rust/crates/tracing/0.1.44:tracing",
"//third-party/rust/crates/url/2.5.7:url",
"//third-party/rust/crates/walkdir/2.5.0:walkdir",
"//third-party/rust/crates/wax/0.6.0:wax",
],
)
rust_test(
name = "libra-unittest",
srcs = [":libra-vendor"],
crate = "libra",
crate_root = "vendor/src/lib.rs",
edition = "2024",
features = ["default"],
rustc_flags = ["@$(location :libra-manifest[env_flags])"],
visibility = ["PUBLIC"],
deps = [
"//third-party/rust/crates/anyhow/1.0.100:anyhow",
"//third-party/rust/crates/byte-unit/5.2.0:byte-unit",
"//third-party/rust/crates/byteorder/1.5.0:byteorder",
"//third-party/rust/crates/bytes/1.11.0:bytes",
"//third-party/rust/crates/chrono/0.4.42:chrono",
"//third-party/rust/crates/clap/4.5.53:clap",
"//third-party/rust/crates/colored/3.0.0:colored",
"//third-party/rust/crates/crc32fast/1.5.0:crc32fast",
"//third-party/rust/crates/diffs/0.5.1:diffs",
"//third-party/rust/crates/dirs/5.0.1:dirs",
"//third-party/rust/crates/flate2/1.1.5:flate2",
"//third-party/rust/crates/futures-util/0.3.31:futures-util",
"//third-party/rust/crates/futures/0.3.31:futures",
"//third-party/rust/crates/git-internal/0.4.0:git-internal",
"//third-party/rust/crates/hex/0.4.3:hex",
"//third-party/rust/crates/http/1.4.0:http",
"//third-party/rust/crates/ignore/0.4.25:ignore",
"//third-party/rust/crates/indicatif/0.18.3:indicatif",
"//third-party/rust/crates/infer/0.19.0:infer",
"//third-party/rust/crates/lazy_static/1.5.0:lazy_static",
"//third-party/rust/crates/lru-mem/0.3.0:lru-mem",
"//third-party/rust/crates/once_cell/1.21.3:once_cell",
"//third-party/rust/crates/pager/0.16.1:pager",
"//third-party/rust/crates/path-absolutize/3.1.1:path-absolutize",
"//third-party/rust/crates/pathdiff/0.2.3:pathdiff",
"//third-party/rust/crates/regex/1.12.2:regex",
"//third-party/rust/crates/reqwest/0.12.24:reqwest",
"//third-party/rust/crates/ring/0.17.14:ring",
"//third-party/rust/crates/rpassword/7.4.0:rpassword",
"//third-party/rust/crates/scopeguard/1.2.0:scopeguard",
"//third-party/rust/crates/sea-orm/1.1.19:sea-orm",
"//third-party/rust/crates/serde/1.0.228:serde",
"//third-party/rust/crates/serde_json/1.0.145:serde_json",
"//third-party/rust/crates/serial_test/3.2.0:serial_test",
"//third-party/rust/crates/sha1/0.10.6:sha1",
"//third-party/rust/crates/similar/2.7.0:similar",
"//third-party/rust/crates/tempfile/3.24.0:tempfile",
"//third-party/rust/crates/testcontainers/0.25.2:testcontainers",
"//third-party/rust/crates/thiserror/2.0.17:thiserror",
"//third-party/rust/crates/tokio-util/0.7.17:tokio-util",
"//third-party/rust/crates/tokio/1.48.0:tokio",
"//third-party/rust/crates/tracing-subscriber/0.3.22:tracing-subscriber",
"//third-party/rust/crates/tracing/0.1.44:tracing",
"//third-party/rust/crates/url/2.5.7:url",
"//third-party/rust/crates/walkdir/2.5.0:walkdir",
"//third-party/rust/crates/wax/0.6.0:wax",
],
)
rust_test(
name = "command_test",
srcs = [":libra-vendor"],
crate = "command_test",
crate_root = "vendor/tests/command_test.rs",
edition = "2024",
env = {
"CARGO_BIN_EXE_libra": "$(location :libra)",
},
features = ["default"],
rustc_flags = ["@$(location :libra-manifest[env_flags])"],
visibility = ["PUBLIC"],
deps = [
"//third-party/rust/crates/anyhow/1.0.100:anyhow",
"//third-party/rust/crates/byte-unit/5.2.0:byte-unit",
"//third-party/rust/crates/byteorder/1.5.0:byteorder",
"//third-party/rust/crates/bytes/1.11.0:bytes",
"//third-party/rust/crates/chrono/0.4.42:chrono",
"//third-party/rust/crates/clap/4.5.53:clap",
"//third-party/rust/crates/colored/3.0.0:colored",
"//third-party/rust/crates/crc32fast/1.5.0:crc32fast",
"//third-party/rust/crates/diffs/0.5.1:diffs",
"//third-party/rust/crates/dirs/5.0.1:dirs",
"//third-party/rust/crates/flate2/1.1.5:flate2",
"//third-party/rust/crates/futures-util/0.3.31:futures-util",
"//third-party/rust/crates/futures/0.3.31:futures",
"//third-party/rust/crates/git-internal/0.4.0:git-internal",
"//third-party/rust/crates/hex/0.4.3:hex",
"//third-party/rust/crates/http/1.4.0:http",
"//third-party/rust/crates/ignore/0.4.25:ignore",
"//third-party/rust/crates/indicatif/0.18.3:indicatif",
"//third-party/rust/crates/infer/0.19.0:infer",
"//third-party/rust/crates/lazy_static/1.5.0:lazy_static",
"//third-party/rust/crates/lru-mem/0.3.0:lru-mem",
"//third-party/rust/crates/once_cell/1.21.3:once_cell",
"//third-party/rust/crates/pager/0.16.1:pager",
"//third-party/rust/crates/path-absolutize/3.1.1:path-absolutize",
"//third-party/rust/crates/pathdiff/0.2.3:pathdiff",
"//third-party/rust/crates/regex/1.12.2:regex",
"//third-party/rust/crates/reqwest/0.12.24:reqwest",
"//third-party/rust/crates/ring/0.17.14:ring",
"//third-party/rust/crates/rpassword/7.4.0:rpassword",
"//third-party/rust/crates/scopeguard/1.2.0:scopeguard",
"//third-party/rust/crates/sea-orm/1.1.19:sea-orm",
"//third-party/rust/crates/serde/1.0.228:serde",
"//third-party/rust/crates/serde_json/1.0.145:serde_json",
"//third-party/rust/crates/serial_test/3.2.0:serial_test",
"//third-party/rust/crates/sha1/0.10.6:sha1",
"//third-party/rust/crates/similar/2.7.0:similar",
"//third-party/rust/crates/tempfile/3.24.0:tempfile",
"//third-party/rust/crates/testcontainers/0.25.2:testcontainers",
"//third-party/rust/crates/thiserror/2.0.17:thiserror",
"//third-party/rust/crates/tokio-util/0.7.17:tokio-util",
"//third-party/rust/crates/tokio/1.48.0:tokio",
"//third-party/rust/crates/tracing-subscriber/0.3.22:tracing-subscriber",
"//third-party/rust/crates/tracing/0.1.44:tracing",
"//third-party/rust/crates/url/2.5.7:url",
"//third-party/rust/crates/walkdir/2.5.0:walkdir",
"//third-party/rust/crates/wax/0.6.0:wax",
":liblibra",
],
)