29 lines
587 B
Python
29 lines
587 B
Python
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
|
|
|
|
go_library(
|
|
name = "iptools",
|
|
srcs = [
|
|
"pool.go",
|
|
"range.go",
|
|
"tools.go",
|
|
],
|
|
importpath = "git.wntrmute.dev/kyle/kdhcp/iptools",
|
|
visibility = ["//visibility:public"],
|
|
deps = [
|
|
"//dhcp",
|
|
"//leases",
|
|
"@dev_wntrmute_git_kyle_goutils//assert",
|
|
"@dev_wntrmute_git_kyle_goutils//log",
|
|
],
|
|
)
|
|
|
|
go_test(
|
|
name = "iptools_test",
|
|
size = "small",
|
|
srcs = [
|
|
"pool_test.go",
|
|
"range_test.go",
|
|
],
|
|
embed = [":iptools"],
|
|
)
|