Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
118 changes: 118 additions & 0 deletions BUCK
Original file line number Diff line number Diff line change
Expand Up @@ -122,3 +122,121 @@ rust_library(
"//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/diffs/0.5.1:diffs",
"//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.2.2: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.23.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.43: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/diffs/0.5.1:diffs",
"//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.2.2: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.23.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.43: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",
],
)
Loading