blob: f326a00af69dbc0e4a6c5be612936431be70aeee [file] [log] [blame]
load("@rules_proto//proto:defs.bzl", "proto_library")
load("@io_bazel_rules_rust//proto:proto.bzl", "rust_grpc_library")
load("@io_bazel_rules_rust//rust:rust.bzl", "rust_test")
proto_library(
name = "helloworld",
srcs = ["helloworld.proto"],
deps = ["//proto:common"],
)
rust_grpc_library(
name = "helloworld_proto",
visibility = ["//proto/helloworld:__subpackages__"],
deps = [":helloworld"],
)
rust_test(
name = "helloworld_test",
srcs = ["helloworld_test.rs"],
data = [
"//proto/helloworld/greeter_client",
"//proto/helloworld/greeter_server",
],
deps = ["@io_bazel_rules_rust//tools/runfiles"],
)