mirror of
https://github.com/nexus-stc/hyperboria
synced 2024-12-29 21:15:48 +01:00
16a151ae19
GitOrigin-RevId: 55a38effd769ab15a3e0893cac84754ffb1de5a0
38 lines
921 B
Python
38 lines
921 B
Python
load("@io_bazel_rules_k8s//k8s:objects.bzl", "k8s_objects")
|
|
|
|
# System-wide settings
|
|
config_setting(
|
|
name = "osx",
|
|
constraint_values = ["@bazel_tools//platforms:osx"],
|
|
)
|
|
|
|
config_setting(
|
|
name = "linux",
|
|
constraint_values = ["@bazel_tools//platforms:linux"],
|
|
)
|
|
|
|
platform(
|
|
name = "linux_x86",
|
|
constraint_values = [
|
|
"@rules_rust//rust/platform:linux",
|
|
"@bazel_tools//platforms:linux",
|
|
"@bazel_tools//platforms:x86_64",
|
|
],
|
|
)
|
|
|
|
|
|
load("@rules_rust//proto:toolchain.bzl", "rust_proto_toolchain")
|
|
|
|
rust_proto_toolchain(
|
|
name = "proto-toolchain-impl",
|
|
grpc_plugin = "//rules/rust/cargo:cargo_bin_protoc_gen_rust_grpc",
|
|
proto_plugin = "//rules/rust/cargo:cargo_bin_protoc_gen_rust",
|
|
protoc = "@com_google_protobuf//:protoc",
|
|
)
|
|
|
|
toolchain(
|
|
name = "proto-toolchain",
|
|
toolchain = ":proto-toolchain-impl",
|
|
toolchain_type = "@rules_rust//proto:toolchain",
|
|
)
|