summaryrefslogtreecommitdiffhomepage
path: root/pkg/segment/BUILD
blob: f57ccc1709880abc6a972d1356222bf3d50af82c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
load("//tools/go_generics:defs.bzl", "go_template")

package(
    default_visibility = ["//:sandbox"],
    licenses = ["notice"],
)

go_template(
    name = "generic_range",
    srcs = ["range.go"],
    types = [
        "T",
    ],
)

go_template(
    name = "generic_set",
    srcs = [
        "set.go",
        "set_state.go",
    ],
    opt_consts = [
        "minDegree",
        # trackGaps must either be 0 or 1.
        "trackGaps",
    ],
    types = [
        "Key",
        "Range",
        "Value",
        "Functions",
    ],
)