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

go_library(
    name = "protocol",
    srcs = ["telnet.go"],
    importpath = "code.ndumas.com/ndumas/gomud/protocol",
    visibility = ["//visibility:public"],
)

go_library(
    name = "telnet",
    srcs = [
        "options.go",
        "parser.go",
        "server.go",
    ],
    importpath = "code.ndumas.com/ndumas/gomud/telnet",
    visibility = ["//visibility:public"],
    deps = [
        "@com_github_threedotslabs_watermill//:watermill",
        "@com_github_threedotslabs_watermill//message",
        "@com_github_threedotslabs_watermill//message/router/middleware",
    ],
)