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

go_library(
    name = "go_default_library",
    srcs = ["marshal.go"],
    importpath = "zombiezen.com/go/capnproto2/encoding/text",
    visibility = ["//visibility:public"],
    deps = [
        "//:go_default_library",
        "//internal/nodemap:go_default_library",
        "//internal/schema:go_default_library",
        "//internal/strquote:go_default_library",
        "//schemas:go_default_library",
    ],
)

go_test(
    name = "go_default_test",
    srcs = ["marshal_test.go"],
    data = glob(["testdata/**"]),
    embed = [":go_default_library"],
    deps = [
        "//:go_default_library",
        "//internal/schema:go_default_library",
        "//schemas:go_default_library",
    ],
)