summaryrefslogtreecommitdiff
path: root/asl/hashing/BUILD.bazel
blob: ff234009ab15b598915f34a2495102502c3cfbcb (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
34
35
36
37
38
39
40
41
42
43
44
# Copyright 2025 Steven Le Rouzic
#
# SPDX-License-Identifier: BSD-3-Clause

package(
    default_applicable_licenses = ["//:license"],
)

cc_library(
    name = "hashing",
    hdrs = [
        "hash.hpp",
    ],
    srcs = [
        "hash_cityhash.cpp",
    ],
    deps = [
        "//asl/base",
        "//asl/types:span",
    ],
    applicable_licenses = [
        "//vendor/cityhash:license",
    ],
    visibility = ["//visibility:public"],
)

cc_test(
    name = "tests",
    srcs = [
        "hash_tests.cpp",
    ],
    deps = [
        "//asl/base",
        "//asl/tests:utils",
        "//asl/testing",
        ":hashing",
        "//asl/strings:string_view",
        "//asl/strings:string",
        "//asl/containers:buffer",
        "//asl/types:box",
        "//asl/types:option",
        "//asl/types:status",
    ],
)