diff --git a/BUILD.bazel b/BUILD.bazel index 19ff6329..ad9ddea1 100644 --- a/BUILD.bazel +++ b/BUILD.bazel @@ -19,7 +19,7 @@ gazelle( ) rust_static_library( - name = "tokenizers", + name = "tokenizers_rs", srcs = glob([ "src/**/*.rs", ]), @@ -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", diff --git a/example/BUILD.bazel b/example/BUILD.bazel index 5e82d3d5..e2e43997 100644 --- a/example/BUILD.bazel +++ b/example/BUILD.bazel @@ -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( diff --git a/release/BUILD.bazel b/release/BUILD.bazel index 6c6e9a40..0f371e11 100644 --- a/release/BUILD.bazel +++ b/release/BUILD.bazel @@ -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(