...

Text file src/github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/BUILD.bazel

Documentation: github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2

     1load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library", "go_test")
     2
     3package(default_visibility = ["//visibility:private"])
     4
     5go_library(
     6    name = "protoc-gen-openapiv2_lib",
     7    srcs = ["main.go"],
     8    importpath = "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2",
     9    deps = [
    10        "//internal/codegenerator",
    11        "//internal/descriptor",
    12        "//protoc-gen-openapiv2/internal/genopenapi",
    13        "//utilities",
    14        "@org_golang_google_grpc//grpclog",
    15        "@org_golang_google_protobuf//proto",
    16        "@org_golang_google_protobuf//types/pluginpb",
    17    ],
    18)
    19
    20go_binary(
    21    name = "protoc-gen-openapiv2",
    22    embed = [":protoc-gen-openapiv2_lib"],
    23    visibility = ["//visibility:public"],
    24)
    25
    26go_test(
    27    name = "protoc-gen-openapiv2_test",
    28    size = "small",
    29    srcs = ["main_test.go"],
    30    embed = [":protoc-gen-openapiv2_lib"],
    31)

View as plain text