Files
imeai-aKode/akode-rs/tui/BUILD.bazel

35 lines
1015 B
Python

load("//:defs.bzl", "MACOS_WEBRTC_RUSTC_LINK_FLAGS", "codex_rust_crate")
codex_rust_crate(
name = "tui",
binaries_with_build_commit = ["akode-tui"],
compile_data = glob([
"assets/**",
]),
crate_name = "akode_tui",
extra_binaries = [
"//akode-rs/cli:codex",
],
integration_compile_data_extra = ["src/test_backend.rs"],
rustc_flags_extra = MACOS_WEBRTC_RUSTC_LINK_FLAGS,
test_data_extra = glob([
"src/**/*.rs",
"src/**/snapshots/**",
"tests/fixtures/**",
]),
test_shard_counts = {
"tui-unit-tests": 8,
},
# The startup symlink test applies its own Seatbelt policy, which cannot be nested.
test_tags = ["no-sandbox"],
unit_test_srcs = glob([
"src/**/*_test_support.rs",
"src/**/*_tests.rs",
"src/**/*_tests/**/*.rs",
"src/**/test_fixtures.rs",
"src/**/test_support.rs",
"src/**/tests.rs",
"src/**/tests/**/*.rs",
]) + ["src/test_backend.rs"],
)