-
Notifications
You must be signed in to change notification settings - Fork 45
Expand file tree
/
Copy pathBUILD.bazel
More file actions
44 lines (40 loc) · 970 Bytes
/
BUILD.bazel
File metadata and controls
44 lines (40 loc) · 970 Bytes
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
load("@gazelle//:def.bzl", "gazelle", "gazelle_binary")
load("@rules_go//go:def.bzl", "go_library", "go_test")
# gazelle:exclude release
# gazelle:prefix github.com/daulet/tokenizers
gazelle(
name = "gazelle",
)
gazelle(
name = "gazelle-update-repos",
args = [
"-from_file=go.mod",
"-to_macro=deps.bzl%go_dependencies",
"-prune",
],
command = "update-repos",
)
go_test(
name = "tokenizers_test",
srcs = ["tokenizer_test.go"],
data = ["//test:data"],
embedsrcs = ["//test:embeddata"],
deps = [
":tokenizers",
"@com_github_stretchr_testify//assert",
"@com_github_stretchr_testify//require",
],
)
go_library(
name = "tokenizers",
srcs = [
"tokenizer.go",
"tokenizers.h",
],
cdeps = [
"//crates/tokenizers:tokenizers_rs",
],
cgo = True,
importpath = "github.com/daulet/tokenizers",
visibility = ["//visibility:public"],
)