2020-01-27 18:04:07 +00:00
|
|
|
load("//tools:defs.bzl", "go_library", "go_test")
|
2019-06-25 22:37:11 +00:00
|
|
|
|
2020-01-27 18:04:07 +00:00
|
|
|
licenses(["notice"])
|
2019-06-25 22:37:11 +00:00
|
|
|
|
|
|
|
go_library(
|
|
|
|
name = "fdchannel",
|
|
|
|
srcs = ["fdchannel_unsafe.go"],
|
|
|
|
visibility = ["//visibility:public"],
|
2021-02-18 01:39:24 +00:00
|
|
|
deps = [
|
|
|
|
"//pkg/gohacks",
|
2021-03-03 18:23:55 +00:00
|
|
|
"@org_golang_x_sys//unix:go_default_library",
|
2021-02-18 01:39:24 +00:00
|
|
|
],
|
2019-06-25 22:37:11 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
go_test(
|
|
|
|
name = "fdchannel_test",
|
|
|
|
size = "small",
|
|
|
|
srcs = ["fdchannel_test.go"],
|
2020-01-27 18:04:07 +00:00
|
|
|
library = ":fdchannel",
|
2021-02-18 01:39:24 +00:00
|
|
|
deps = [
|
|
|
|
"//pkg/sync",
|
2021-03-03 18:23:55 +00:00
|
|
|
"@org_golang_x_sys//unix:go_default_library",
|
2021-02-18 01:39:24 +00:00
|
|
|
],
|
2019-06-25 22:37:11 +00:00
|
|
|
)
|