Skip to content

Commit

Permalink
rename main go target to just tokenizers to simplify downstream use c…
Browse files Browse the repository at this point in the history
…ases
  • Loading branch information
Daulet Zhanguzin committed Nov 9, 2023
1 parent c2f743b commit e020e7e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ gazelle(
)

rust_static_library(
name = "tokenizers",
name = "tokenizers_rs",
srcs = glob([
"src/**/*.rs",
]),
Expand All @@ -37,20 +37,20 @@ go_test(
data = ["//test:data"],
embedsrcs = ["//test:embeddata"],
deps = [
":tokenizers_go",
":tokenizers",
"@com_github_stretchr_testify//assert",
"@com_github_stretchr_testify//require",
],
)

go_library(
name = "tokenizers_go",
name = "tokenizers",
srcs = [
"tokenizer.go",
"tokenizers.h",
],
cdeps = [
":tokenizers",
":tokenizers_rs",
],
cgo = True,
importpath = "github.com/daulet/tokenizers",
Expand Down
2 changes: 1 addition & 1 deletion example/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ go_library(
srcs = ["main.go"],
importpath = "github.com/daulet/tokenizers/example",
visibility = ["//visibility:private"],
deps = ["//:tokenizers_go"],
deps = ["//:tokenizers"],
)

go_binary(
Expand Down
2 changes: 1 addition & 1 deletion release/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ go_library(
srcs = ["main.go"],
importpath = "github.com/daulet/tokenizers/release",
visibility = ["//visibility:private"],
deps = ["//:tokenizers_go"],
deps = ["//:tokenizers"],
)

go_binary(
Expand Down

0 comments on commit e020e7e

Please sign in to comment.