BUILD.bazel (3035B)
1 load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") 2 3 package(default_visibility = ["//visibility:public"]) 4 5 go_library( 6 name = "runtime", 7 srcs = [ 8 "context.go", 9 "convert.go", 10 "doc.go", 11 "errors.go", 12 "fieldmask.go", 13 "handler.go", 14 "marshal_httpbodyproto.go", 15 "marshal_json.go", 16 "marshal_jsonpb.go", 17 "marshal_proto.go", 18 "marshaler.go", 19 "marshaler_registry.go", 20 "mux.go", 21 "pattern.go", 22 "proto2_convert.go", 23 "query.go", 24 ], 25 importpath = "github.com/grpc-ecosystem/grpc-gateway/v2/runtime", 26 deps = [ 27 "//internal/httprule", 28 "//utilities", 29 "@go_googleapis//google/api:httpbody_go_proto", 30 "@io_bazel_rules_go//proto/wkt:field_mask_go_proto", 31 "@org_golang_google_grpc//codes", 32 "@org_golang_google_grpc//grpclog", 33 "@org_golang_google_grpc//metadata", 34 "@org_golang_google_grpc//status", 35 "@org_golang_google_protobuf//encoding/protojson", 36 "@org_golang_google_protobuf//proto", 37 "@org_golang_google_protobuf//reflect/protoreflect", 38 "@org_golang_google_protobuf//reflect/protoregistry", 39 "@org_golang_google_protobuf//types/known/durationpb", 40 "@org_golang_google_protobuf//types/known/timestamppb", 41 "@org_golang_google_protobuf//types/known/wrapperspb", 42 ], 43 ) 44 45 go_test( 46 name = "runtime_test", 47 size = "small", 48 srcs = [ 49 "context_test.go", 50 "convert_test.go", 51 "errors_test.go", 52 "fieldmask_test.go", 53 "handler_test.go", 54 "marshal_httpbodyproto_test.go", 55 "marshal_json_test.go", 56 "marshal_jsonpb_test.go", 57 "marshal_proto_test.go", 58 "marshaler_registry_test.go", 59 "mux_test.go", 60 "pattern_test.go", 61 "query_test.go", 62 ], 63 embed = [":runtime"], 64 deps = [ 65 "//runtime/internal/examplepb", 66 "//utilities", 67 "@com_github_google_go_cmp//cmp", 68 "@com_github_google_go_cmp//cmp/cmpopts", 69 "@go_googleapis//google/api:httpbody_go_proto", 70 "@go_googleapis//google/rpc:errdetails_go_proto", 71 "@go_googleapis//google/rpc:status_go_proto", 72 "@io_bazel_rules_go//proto/wkt:field_mask_go_proto", 73 "@org_golang_google_grpc//codes", 74 "@org_golang_google_grpc//metadata", 75 "@org_golang_google_grpc//status", 76 "@org_golang_google_protobuf//encoding/protojson", 77 "@org_golang_google_protobuf//proto", 78 "@org_golang_google_protobuf//testing/protocmp", 79 "@org_golang_google_protobuf//types/known/durationpb", 80 "@org_golang_google_protobuf//types/known/emptypb", 81 "@org_golang_google_protobuf//types/known/structpb", 82 "@org_golang_google_protobuf//types/known/timestamppb", 83 "@org_golang_google_protobuf//types/known/wrapperspb", 84 ], 85 ) 86 87 alias( 88 name = "go_default_library", 89 actual = ":runtime", 90 visibility = ["//visibility:public"], 91 )