From e020e7ef4c7dbdba4e330d5f714d1a3495499543 Mon Sep 17 00:00:00 2001 From: Daulet Zhanguzin Date: Thu, 9 Nov 2023 15:25:19 -0800 Subject: [PATCH] rename main go target to just tokenizers to simplify downstream use cases --- BUILD.bazel | 8 ++++---- example/BUILD.bazel | 2 +- release/BUILD.bazel | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) 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(