blob: db30a9d09c514f21f5e99d25853b04ba54f0e354 [file] [log] [blame]
Brian Silvermancc09f182022-03-09 15:40:20 -08001load("@rules_proto//proto:defs.bzl", "proto_library")
2load("@rules_rust//proto:proto.bzl", "rust_grpc_library")
3load("@rules_rust//rust:defs.bzl", "rust_test")
4
5proto_library(
6 name = "helloworld",
7 srcs = ["helloworld.proto"],
8 deps = ["//proto:common"],
9)
10
11rust_grpc_library(
12 name = "helloworld_proto",
13 visibility = ["//proto/helloworld:__subpackages__"],
14 deps = [":helloworld"],
15)
16
17rust_test(
18 name = "helloworld_test",
19 srcs = ["helloworld_test.rs"],
20 data = [
21 "//proto/helloworld/greeter_client",
22 "//proto/helloworld/greeter_server",
23 ],
24 deps = ["@rules_rust//tools/runfiles"],
25)