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

go_library(
    name = "go_default_library",
    srcs = ["server.go"],
    importpath = "zombiezen.com/go/capnproto2/server",
    visibility = ["//visibility:public"],
    deps = [
        "//:go_default_library",
        "//internal/fulfiller:go_default_library",
        "@org_golang_x_net//context:go_default_library",
    ],
)

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