mirror of
https://github.com/pchuan98/codex.git
synced 2026-07-01 00:31:56 +08:00
740c4f269d
## Intent Keep Bazel and Starlark files consistently formatted without requiring contributors to install or version buildifier themselves. ## Implementation - Add a SHA-256-pinned, cross-platform DotSlash manifest for buildifier v8.5.1. - Run buildifier from the shared `just fmt` and `just fmt-check` driver, with Windows-safe explicit DotSlash invocation. - Provision DotSlash in formatting CI and contributor devcontainers, and document the source-build prerequisite. - Apply the initial mechanical buildifier formatting baseline.
31 lines
817 B
Python
31 lines
817 B
Python
load("//:defs.bzl", "MACOS_WEBRTC_RUSTC_LINK_FLAGS", "codex_rust_crate")
|
|
|
|
codex_rust_crate(
|
|
name = "tui",
|
|
compile_data = glob(
|
|
include = ["**"],
|
|
allow_empty = True,
|
|
exclude = [
|
|
"**/* *",
|
|
"BUILD.bazel",
|
|
"Cargo.toml",
|
|
],
|
|
) + [
|
|
"//codex-rs/collaboration-mode-templates:templates/default.md",
|
|
"//codex-rs/collaboration-mode-templates:templates/plan.md",
|
|
],
|
|
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/**",
|
|
]),
|
|
test_shard_counts = {
|
|
"tui-unit-tests": 8,
|
|
},
|
|
)
|