| load("//:plugin.bzl", "proto_plugin") | |
| proto_plugin( | |
| name = "csharp", | |
| # TODO, figure out how this would work | |
| # options = ["base_namespace"], | |
| outputs = ["{package}/{basename|pascal}.cs"], | |
| transitivity = { | |
| "google/protobuf": "exclude", | |
| }, | |
| visibility = ["//visibility:public"], | |
| ) | |
| proto_plugin( | |
| name = "grpc_csharp", | |
| outputs = ["{package}/{basename|pascal}Grpc.cs"], | |
| transitivity = { | |
| "google/protobuf": "exclude", | |
| }, | |
| tool = "@com_github_grpc_grpc//:grpc_csharp_plugin", | |
| visibility = ["//visibility:public"], | |
| ) |