blob: 1b7fa26121c2eb40b95c04d9a923318aa9871252 [file] [log] [blame]
Brian Silvermancc09f182022-03-09 15:40:20 -08001load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
2load("//rust:defs.bzl", "rust_binary")
3load(":toolchain.bzl", "rust_proto_toolchain")
4
5package(default_visibility = ["//visibility:public"])
6
7alias(
8 name = "protoc_gen_rust",
9 actual = "//proto/raze:cargo_bin_protoc_gen_rust",
10)
11
12alias(
13 name = "protoc_gen_rust_grpc",
14 actual = "//proto/raze:cargo_bin_protoc_gen_rust_grpc",
15)
16
17toolchain_type(name = "toolchain")
18
19rust_binary(
20 name = "optional_output_wrapper",
21 srcs = ["optional_output_wrapper.rs"],
22 visibility = ["//visibility:public"],
23)
24
25toolchain(
26 name = "default-proto-toolchain",
27 toolchain = ":default-proto-toolchain-impl",
28 toolchain_type = "@rules_rust//proto:toolchain",
29)
30
31rust_proto_toolchain(name = "default-proto-toolchain-impl")
32
33bzl_library(
34 name = "bzl_lib",
35 srcs = glob(["**/*.bzl"]) + ["//proto/raze:crates.bzl"],
36)
37
38alias(
39 name = "rules",
40 actual = ":bzl_lib",
41 deprecation = "Please use the `@rules_rust//proto:bzl_lib` target instead",
42)