fork/rules_rust

git clone https://git.julia.blue/fork/rules_rust

Marcel HlopkoMigrate rules_rust examples to defs.bzl and smaller rules (#986)d974e0ea

0.5.0
638 B25 linesraw
1load("@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)