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