mirror of
https://github.com/openai/codex.git
synced 2026-11-14 21:40:39 +00:00
## What changed - Use the `rules_rs` 0.2.3 registry release instead of an archive override, and upgrade `platforms` to 1.1.0. - Disable root crate alias targets and migrate explicit dependencies to package labels such as `@crates//tokio`. Disable root crate data for the argument comment linter's crate repository. - Refresh the retained `rules_rs` patches, remove the zlib snapshot URL backport, and drop extra dependency declarations from `exec-server` and `v8-poc`. GitOrigin-RevId: c354413a19b45964104457063c613028f5325bc0
55 lines
1.3 KiB
Python
55 lines
1.3 KiB
Python
load("@rules_rust//rust:defs.bzl", "rust_binary", "rust_library")
|
|
load(":wine.bzl", "wine_rust_test")
|
|
|
|
package(default_visibility = ["//visibility:public"])
|
|
|
|
exports_files([
|
|
"wine.bzl",
|
|
"wine_runtime.bzl",
|
|
])
|
|
|
|
rust_library(
|
|
name = "wine_test_support",
|
|
testonly = True,
|
|
srcs = [
|
|
"src/lib.rs",
|
|
"src/lib_tests.rs",
|
|
],
|
|
crate_name = "wine_test_support",
|
|
crate_root = "src/lib.rs",
|
|
edition = "2024",
|
|
target_compatible_with = ["@platforms//os:linux"],
|
|
deps = [
|
|
"//codex-rs/utils/cargo-bin",
|
|
"//codex-rs/utils/pty",
|
|
"@crates//anyhow",
|
|
"@crates//tempfile",
|
|
"@crates//tokio",
|
|
],
|
|
)
|
|
|
|
rust_binary(
|
|
name = "windows-smoke",
|
|
testonly = True,
|
|
srcs = ["fixtures/windows_smoke.rs"],
|
|
crate_name = "wine_smoke",
|
|
crate_root = "fixtures/windows_smoke.rs",
|
|
edition = "2024",
|
|
tags = ["manual"],
|
|
target_compatible_with = ["@platforms//os:windows"],
|
|
visibility = ["//visibility:private"],
|
|
)
|
|
|
|
wine_rust_test(
|
|
name = "wine-test-support-unit-tests",
|
|
timeout = "moderate",
|
|
crate = ":wine_test_support",
|
|
windows_binaries = {
|
|
"wine-smoke": ":windows-smoke",
|
|
},
|
|
deps = [
|
|
"@crates//futures",
|
|
"@crates//pretty_assertions",
|
|
],
|
|
)
|