load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")

go_library(
    name = "go_default_library",
    srcs = [
        "alts.go",
        "utils.go",
    ],
    importpath = "google.golang.org/grpc/credentials/alts",
    visibility = ["//visibility:public"],
    deps = [
        "//credentials:go_default_library",
        "//credentials/alts/core:go_default_library",
        "//credentials/alts/core/handshaker:go_default_library",
        "//credentials/alts/core/handshaker/service:go_default_library",
        "//credentials/alts/core/proto/grpc_gcp:go_default_library",
        "//grpclog:go_default_library",
        "//peer:go_default_library",
        "@org_golang_x_net//context:go_default_library",
    ],
)

go_test(
    name = "go_default_test",
    srcs = [
        "alts_test.go",
        "utils_test.go",
    ],
    embed = [":go_default_library"],
    deps = [
        "//credentials/alts/core/proto/grpc_gcp:go_default_library",
        "//peer:go_default_library",
        "@com_github_golang_protobuf//proto:go_default_library",
        "@org_golang_x_net//context:go_default_library",
    ],
)
