From 9817d5ddaa924b380752e05ff0d78b65463983e3 Mon Sep 17 00:00:00 2001 From: Carbo Date: Fri, 27 Mar 2026 14:39:16 +0900 Subject: [PATCH 1/2] Fix Bazel build with bzlmod by loading cc_library rule With bzlmod, native rules like cc_library are no longer implicitly available and must be explicitly loaded from rules_cc. Add the rules_cc dependency to MODULE.bazel and the corresponding load statement to BUILD.bazel. Co-Authored-By: Claude Opus 4.6 (1M context) --- BUILD.bazel | 2 ++ MODULE.bazel | 2 ++ 2 files changed, 4 insertions(+) diff --git a/BUILD.bazel b/BUILD.bazel index fc784a3b..b08e9090 100644 --- a/BUILD.bazel +++ b/BUILD.bazel @@ -1,3 +1,5 @@ +load("@rules_cc//cc:cc_library.bzl", "cc_library") + cc_library( name = "fast_float", hdrs = glob(["include/fast_float/*.h"]), diff --git a/MODULE.bazel b/MODULE.bazel index 6704680e..e34ea3b1 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -7,3 +7,5 @@ module( ) bazel_dep(name = "doctest", version = "2.4.11", dev_dependency = True) + +bazel_dep(name = "rules_cc", version = "0.2.17") From 2027a39ba0418d0c54dcbe29ae53a7e7f1b498ff Mon Sep 17 00:00:00 2001 From: Carbo Date: Fri, 27 Mar 2026 14:42:55 +0900 Subject: [PATCH 2/2] Update MODULE.bazel version to 8.2.4 Co-Authored-By: Claude Opus 4.6 (1M context) --- MODULE.bazel | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MODULE.bazel b/MODULE.bazel index e34ea3b1..9f63ac4e 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -2,8 +2,8 @@ module( name = "fast_float", - version = "6.1.6", - compatibility_level = 6, + version = "8.2.4", + compatibility_level = 8, ) bazel_dep(name = "doctest", version = "2.4.11", dev_dependency = True)