forked from bazelbuild/rules_rust
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBUILD.bazel
More file actions
42 lines (33 loc) · 1020 Bytes
/
BUILD.bazel
File metadata and controls
42 lines (33 loc) · 1020 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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",
)
toolchain_type(name = "toolchain")
rust_binary(
name = "optional_output_wrapper",
srcs = ["optional_output_wrapper.rs"],
visibility = ["//visibility:public"],
)
toolchain(
name = "default-proto-toolchain",
toolchain = ":default-proto-toolchain-impl",
toolchain_type = "@rules_rust//proto:toolchain",
)
rust_proto_toolchain(name = "default-proto-toolchain-impl")
bzl_library(
name = "bzl_lib",
srcs = glob(["**/*.bzl"]) + ["//proto/raze:crates.bzl"],
)
alias(
name = "rules",
actual = ":bzl_lib",
deprecation = "Please use the `@rules_rust//proto:bzl_lib` target instead",
)