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

go_library(
    name = "go_default_library",
    srcs = [
        "credentials.go",
        "credentials_util_go17.go",
        "credentials_util_go18.go",
        "credentials_util_pre_go17.go",
    ],
    importpath = "google.golang.org/grpc/credentials",
    visibility = ["//visibility:public"],
    deps = ["@org_golang_x_net//context:go_default_library"],
)

go_test(
    name = "go_default_test",
    srcs = ["credentials_test.go"],
    embed = [":go_default_library"],
    deps = [
        "//testdata:go_default_library",
        "@org_golang_x_net//context:go_default_library",
    ],
)
