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

go_library(
    name = "smash_lib",
    srcs = ["smash.go"],
    data = [
        ":bspb.protoset",
    ],
    importpath = "github.com/buildbuddy-io/buildbuddy/enterprise/server/cmd/smash",
    visibility = ["//visibility:private"],
    deps = [
        "//proto:remote_execution_go_proto",
        "//server/remote_cache/cachetools",
        "//server/remote_cache/digest",
        "//server/util/grpc_client",
        "//server/util/log",
        "@com_github_bojand_ghz//printer",
        "@com_github_bojand_ghz//runner",
        "@com_github_golang_protobuf//proto:go_default_library",
        "@com_github_jhump_protoreflect//desc",
        "@go_googleapis//google/bytestream:bytestream_go_proto",
        "@io_bazel_rules_go//go/tools/bazel:go_default_library",
        "@org_golang_google_grpc//metadata",
    ],
)

go_binary(
    name = "smash",
    embed = [":smash_lib"],
    visibility = ["//visibility:public"],
)
