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

package(
    licenses = ["notice"],  # Apache 2.0
)

go_library(
    name = "go_default_library",
    srcs = [
        "cel.go",
        "env.go",
        "io.go",
        "library.go",
        "options.go",
        "program.go",
    ],
    deps = [
        "//checker:go_default_library",
        "//checker/decls:go_default_library",
        "//common:go_default_library",
        "//common/packages:go_default_library",
        "//common/types:go_default_library",
        "//common/types/pb:go_default_library",
        "//common/types/ref:go_default_library",
        "//interpreter:go_default_library",
        "//interpreter/functions:go_default_library",
        "//parser:go_default_library",
        "@com_github_golang_protobuf//proto:go_default_library",
        "@io_bazel_rules_go//proto/wkt:descriptor_go_proto",
        "@org_golang_google_genproto//googleapis/api/expr/v1alpha1:go_default_library",
    ],
    importpath = "github.com/google/cel-go/cel",
    visibility = ["//visibility:public"],
)

go_test(
    name = "go_default_test",
    srcs = [
        "cel_test.go",
    ],
    embed = [
        ":go_default_library",
    ],
    data = [
        "//cel/testdata:gen_test_fds",
    ],
    deps = [
        "//checker/decls:go_default_library",
        "//common/operators:go_default_library",
        "//common/overloads:go_default_library",
        "//common/types:go_default_library",
        "//common/types/ref:go_default_library",
        "//common/types/traits:go_default_library",
        "//interpreter/functions:go_default_library",
        "//test/proto2pb:go_default_library",
        "//test/proto3pb:go_default_library",
        "@io_bazel_rules_go//proto/wkt:descriptor_go_proto",
        "@org_golang_google_genproto//googleapis/api/expr/v1alpha1:go_default_library",
    ],
)
