mirror of
https://github.com/openai/codex.git
synced 2026-10-22 17:58:46 +00:00
## Why The `core` and `tui` Bazel targets treated nearly their entire crate trees as compile-time data, mixing embedded runtime resources with source files and test fixtures. ## What changed - Move embedded resources for `core` and `tui` into dedicated `assets/` directories and update their `include_str!` paths. - Restrict Bazel compile data to explicit asset and frame directories. - Move test-only prompts into `tests/fixtures`, resolve the core prompt through `find_resource!`, and reuse the integration-test file glob when assembling Bazel test data. GitOrigin-RevId: eee9b0e41df77ea2604215a7f7333a6fe8317bfa
24 lines
579 B
Python
24 lines
579 B
Python
load("//:defs.bzl", "MACOS_WEBRTC_RUSTC_LINK_FLAGS", "codex_rust_crate")
|
|
|
|
codex_rust_crate(
|
|
name = "tui",
|
|
compile_data = glob([
|
|
"assets/**",
|
|
"frames/**",
|
|
]),
|
|
crate_name = "codex_tui",
|
|
extra_binaries = [
|
|
"//codex-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,
|
|
},
|
|
)
|