blob: 2339b0150611e40400c0377b5686bf0c59e0909d [file]
load("//:plugin.bzl", "proto_plugin")
proto_plugin(
name = "grpc_gateway_plugin",
outputs = [
"{protopath}.pb.gw.go",
],
# Show options:
# $ bazel run @grpc_ecosystem_grpc_gateway//protoc-gen-grpc-gateway -- --help
# options = [
# "logtostderr=true",
# ],
tool = "@grpc_ecosystem_grpc_gateway//protoc-gen-grpc-gateway",
exclusions = [
"google/api",
"google/protobuf",
],
visibility = ["//visibility:public"],
)
proto_plugin(
name = "swagger_plugin",
outputs = [
"{protopath}.swagger.json",
],
# Show options:
# $ bazel run @grpc_ecosystem_grpc_gateway//protoc-gen-grpc-swagger -- --help
# options = [
# "json_names_for_fields",
# ],
tool = "@grpc_ecosystem_grpc_gateway//protoc-gen-swagger",
exclusions = [
"google/api",
"google/protobuf",
],
visibility = ["//visibility:public"],
)