mirror of
https://github.com/openai/codex.git
synced 2026-11-13 21:30:47 +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
36 lines
1005 B
Python
36 lines
1005 B
Python
load("@rules_rust//extensions/prost:defs.bzl", "rust_prost_toolchain")
|
|
load("@rules_rust//rust:defs.bzl", "rust_library_group")
|
|
|
|
package(default_visibility = ["//visibility:public"])
|
|
|
|
rust_library_group(
|
|
name = "prost_runtime",
|
|
deps = ["@crates//prost"],
|
|
)
|
|
|
|
rust_library_group(
|
|
name = "tonic_runtime",
|
|
deps = [
|
|
":prost_runtime",
|
|
"@crates//tonic",
|
|
"@crates//tonic-prost",
|
|
],
|
|
)
|
|
|
|
rust_prost_toolchain(
|
|
name = "toolchain_impl",
|
|
compile_well_known_types = False,
|
|
prost_plugin = "@rules_rs//rs/private/prost:protoc-gen-prost__protoc-gen-prost",
|
|
prost_runtime = ":prost_runtime",
|
|
prost_types = "@crates//prost-types-0.14.3",
|
|
tonic_plugin = "@rules_rs//rs/private/prost:protoc-gen-tonic__protoc-gen-tonic",
|
|
tonic_plugin_flag = "--plugin=protoc-gen-tonic=%s",
|
|
tonic_runtime = ":tonic_runtime",
|
|
)
|
|
|
|
toolchain(
|
|
name = "toolchain",
|
|
toolchain = ":toolchain_impl",
|
|
toolchain_type = "@rules_rust//extensions/prost:toolchain_type",
|
|
)
|