diff --git a/bazel/repositories.bzl b/bazel/repositories.bzl index 25b6599b..9dcaf31e 100644 --- a/bazel/repositories.bzl +++ b/bazel/repositories.bzl @@ -181,11 +181,11 @@ def _com_github_fmtlib_fmt(): maybe( http_archive, name = "com_github_fmtlib_fmt", - strip_prefix = "fmt-10.2.1", - sha256 = "1250e4cc58bf06ee631567523f48848dc4596133e163f02615c97f78bab6c811", + strip_prefix = "fmt-11.0.2", + sha256 = "6cb1e6d37bdcb756dbbe59be438790db409cdb4868c66e888d5df9f13f7c027f", build_file = "@yacl//bazel:fmtlib.BUILD", urls = [ - "https://github.com/fmtlib/fmt/archive/refs/tags/10.2.1.tar.gz", + "https://github.com/fmtlib/fmt/archive/refs/tags/11.0.2.tar.gz", ], ) diff --git a/yacl/crypto/experimental/tpre/kdf_test.cc b/yacl/crypto/experimental/tpre/kdf_test.cc index 85415e61..467b255f 100644 --- a/yacl/crypto/experimental/tpre/kdf_test.cc +++ b/yacl/crypto/experimental/tpre/kdf_test.cc @@ -14,10 +14,8 @@ #include "yacl/crypto/experimental/tpre/kdf.h" -#include -#include - #include "gtest/gtest.h" +#include "fmt/ranges.h" namespace yacl::crypto::test { diff --git a/yacl/io/rw/csv_writer.cc b/yacl/io/rw/csv_writer.cc index 5637bcd6..18cb869c 100644 --- a/yacl/io/rw/csv_writer.cc +++ b/yacl/io/rw/csv_writer.cc @@ -14,15 +14,12 @@ #include "yacl/io/rw/csv_writer.h" -#include #include #include -#include -#include #include #include -#include "fmt/format.h" +#include "fmt/ranges.h" #include "yacl/base/exception.h" #include "yacl/io/rw/float.h" diff --git a/yacl/utils/spi/argument/arg_set.cc b/yacl/utils/spi/argument/arg_set.cc index e93e6f06..c9380677 100644 --- a/yacl/utils/spi/argument/arg_set.cc +++ b/yacl/utils/spi/argument/arg_set.cc @@ -13,6 +13,7 @@ // limitations under the License. #include "yacl/utils/spi/argument/arg_set.h" +#include "fmt/ranges.h" // formatter to format SpiArgs values template <> diff --git a/yacl/utils/spi/item.cc b/yacl/utils/spi/item.cc index e3ef7011..d3e1dcaf 100644 --- a/yacl/utils/spi/item.cc +++ b/yacl/utils/spi/item.cc @@ -15,6 +15,7 @@ #include "yacl/utils/spi/item.h" #include "yacl/math/mpint/mp_int.h" +#include "fmt/ranges.h" namespace yacl {