gvisor.dev/gvisor@v0.0.0-20240520182842-f9d4d51c7e0f/pkg/safemem/BUILD (about)

     1  load("//tools:defs.bzl", "go_library", "go_test")
     2  
     3  package(
     4      default_applicable_licenses = ["//:license"],
     5      licenses = ["notice"],
     6  )
     7  
     8  go_library(
     9      name = "safemem",
    10      srcs = [
    11          "block_unsafe.go",
    12          "io.go",
    13          "safemem.go",
    14          "seq_unsafe.go",
    15      ],
    16      visibility = ["//:sandbox"],
    17      deps = [
    18          "//pkg/gohacks",
    19          "//pkg/safecopy",
    20          "//pkg/sync",
    21          "@org_golang_x_sys//unix:go_default_library",
    22      ],
    23  )
    24  
    25  go_test(
    26      name = "safemem_test",
    27      size = "small",
    28      srcs = [
    29          "io_test.go",
    30          "seq_test.go",
    31      ],
    32      library = ":safemem",
    33  )