blob: 92e31425de4db5b264d7a51d06434cd87cb66167 [file] [log] [blame]
load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
load("//rust:defs.bzl", "rust_binary")
load(":toolchain.bzl", "rust_proto_toolchain")
package(default_visibility = ["//visibility:public"])
alias(
name = "protoc_gen_rust",
actual = "//proto/raze:cargo_bin_protoc_gen_rust",
)
alias(
name = "protoc_gen_rust_grpc",
actual = "//proto/raze:cargo_bin_protoc_gen_rust_grpc",
)
filegroup(
name = "distro",
srcs = glob([
"*.bzl",
"*.rs",
]) + [
"//proto/patches:distro",
"//proto/raze:srcs",
"//proto/raze/patch:distro",
"//proto/raze/remote:srcs",
"BUILD.bazel",
],
visibility = ["//:__subpackages__"],
)
toolchain_type(
name = "toolchain_type",
)
alias(
name = "toolchain",
actual = "toolchain_type",
deprecation = "instead use `@rules_rust//proto:toolchain_type`",
tags = ["manual"],
)
rust_binary(
name = "optional_output_wrapper",
srcs = ["optional_output_wrapper.rs"],
edition = "2018",
visibility = ["//visibility:public"],
)
toolchain(
name = "default-proto-toolchain",
toolchain = ":default-proto-toolchain-impl",
toolchain_type = "@rules_rust//proto:toolchain_type",
)
rust_proto_toolchain(
name = "default-proto-toolchain-impl",
edition = "2018",
)
bzl_library(
name = "bzl_lib",
srcs = glob(["**/*.bzl"]) + ["//proto/raze:crates.bzl"],
)