forked from stackb/rules_proto
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD.bazel
29 lines (25 loc) · 920 Bytes
/
BUILD.bazel
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
load("//:plugin.bzl", "proto_plugin")
proto_plugin(
name = "rust",
# Use the proto basename and pipe the value to the rust_keyword function.
# Ths function will append '_pb' if the basename is a rust keyword.
outputs = ["{package}/{basename|rust_keyword}.rs"],
tool = ":protoc_gen_rust",
visibility = ["//visibility:public"],
)
proto_plugin(
name = "grpc_rust",
# Use the proto basename and pipe the value to the rust_keyword function.
# Ths function will append '_pb' if the basename is a rust keyword.
outputs = ["{package}/{basename|rust_keyword}_grpc.rs"],
tool = ":protoc_gen_rust_grpc",
visibility = ["//visibility:public"],
)
alias(
name = "protoc_gen_rust",
actual = "@raze__protobuf_codegen__1_6_0//:cargo_bin_protoc_gen_rust",
)
alias(
name = "protoc_gen_rust_grpc",
actual = "@raze__grpc_compiler__0_4_0//:cargo_bin_protoc_gen_rust_grpc",
)