github.com/SagerNet/gvisor@v0.0.0-20210707092255-7731c139d75c/pkg/tcpip/adapters/gonet/BUILD (about)

     1  load("//tools:defs.bzl", "go_library", "go_test")
     2  
     3  package(licenses = ["notice"])
     4  
     5  go_library(
     6      name = "gonet",
     7      srcs = ["gonet.go"],
     8      visibility = ["//visibility:public"],
     9      deps = [
    10          "//pkg/sync",
    11          "//pkg/tcpip",
    12          "//pkg/tcpip/buffer",
    13          "//pkg/tcpip/stack",
    14          "//pkg/tcpip/transport/tcp",
    15          "//pkg/tcpip/transport/udp",
    16          "//pkg/waiter",
    17      ],
    18  )
    19  
    20  go_test(
    21      name = "gonet_test",
    22      size = "small",
    23      srcs = ["gonet_test.go"],
    24      library = ":gonet",
    25      deps = [
    26          "//pkg/tcpip",
    27          "//pkg/tcpip/header",
    28          "//pkg/tcpip/link/loopback",
    29          "//pkg/tcpip/network/ipv4",
    30          "//pkg/tcpip/network/ipv6",
    31          "//pkg/tcpip/stack",
    32          "//pkg/tcpip/transport/tcp",
    33          "//pkg/tcpip/transport/udp",
    34          "//pkg/waiter",
    35          "@org_golang_x_net//nettest:go_default_library",
    36      ],
    37  )