Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .bazelversion
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7.1.1

36 changes: 25 additions & 11 deletions MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,37 @@ module(
)

bazel_dep(name = "abseil-cpp", version = "20250814.1")
bazel_dep(name = "bazel_skylib", version = "1.8.1")
bazel_dep(name = "bazel_skylib", version = "1.8.2")
bazel_dep(name = "googletest", version = "1.17.0")
bazel_dep(name = "highway", version = "1.1.0")
archive_override(
module_name = "highway",
urls = ["https://github.com/google/highway/archive/2a16a50ff61071bb25ddef0ce35d92b0e2b9c579.zip"],
strip_prefix = "highway-2a16a50ff61071bb25ddef0ce35d92b0e2b9c579",
patch_cmds = [
"sed -i '1s/^/load(\\\"@rules_cc\\/\\/cc:defs.bzl\\\", \\\"cc_library\\\", \\\"cc_binary\\\", \\\"cc_test\\\")\\n/' BUILD",
"sed -i '1s/^/load(\\\"@rules_cc\\/\\/cc:defs.bzl\\\", \\\"cc_library\\\", \\\"cc_binary\\\", \\\"cc_test\\\")\\n/' hwy/contrib/sort/BUILD",
"sed -i 's/#define HWY_BROKEN_AVX10_2 0/#define HWY_BROKEN_AVX10_2 HWY_AVX10_2/g' hwy/detect_targets.h",
],
)
bazel_dep(name = "nlohmann_json", version = "3.11.3")
bazel_dep(name = "protobuf", version = "33.4")
bazel_dep(name = "platforms", version = "1.0.0")
bazel_dep(name = "pybind11_bazel", version = "2.13.6")
bazel_dep(name = "rules_cc", version = "0.2.0")
bazel_dep(name = "pybind11_bazel", version = "2.12.0")
bazel_dep(name = "rules_cc", version = "0.2.17")
bazel_dep(name = "rules_license", version = "1.0.0")
bazel_dep(name = "rules_python", version = "1.6.3")
bazel_dep(name = "google_benchmark", version = "1.8.5")
bazel_dep(name = "rules_python", version = "1.7.0")
bazel_dep(name = "google_benchmark", version = "1.9.1")
single_version_override(
module_name = "google_benchmark",
patches = ["//:google_benchmark.patch"],
patch_strip = 1,
)
bazel_dep(name = "rules_foreign_cc", version = "0.13.0")
bazel_dep(name = "rules_proto", version = "7.1.0")
bazel_dep(name = "protobuf", version = "29.3")

# Require a more recent version.
git_override(
module_name = "highway",
commit = "c971dbe61bd2751923e3458666450bf95dfbbd98",
remote = "https://github.com/google/highway",
)
# Removed git_override to rely on bzlmod.

http_archive = use_repo_rule("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

Expand All @@ -48,6 +61,7 @@ http_archive(
http_archive(
name = "darts_clone",
build_file_content = """
load("@rules_cc//cc:defs.bzl", "cc_library")
licenses(["notice"])
exports_files(["LICENSE"])
package(default_visibility = ["//visibility:public"])
Expand Down
4 changes: 4 additions & 0 deletions bazel/sentencepiece.bazel
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
load("@rules_cc//cc:defs.bzl", "cc_library")
load("@protobuf//bazel:cc_proto_library.bzl", "cc_proto_library")
load("@rules_proto//proto:defs.bzl", "proto_library")

package(
default_visibility = ["//visibility:public"],
features = [
Expand Down
Loading