From 8a0187a58670867e11a5e24d016bacf95ddb065a Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 16 Aug 2024 05:25:44 +0000 Subject: [PATCH 1/2] Update dependency com_github_fmtlib_fmt to v11 --- bazel/repositories.bzl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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", ], ) From 9177b689ebcbdd192ae46258eb9298838c4e1d7d Mon Sep 17 00:00:00 2001 From: anakinxc Date: Fri, 16 Aug 2024 13:32:17 +0800 Subject: [PATCH 2/2] Fix --- yacl/crypto/experimental/tpre/kdf_test.cc | 4 +--- yacl/io/rw/csv_writer.cc | 5 +---- yacl/utils/spi/argument/arg_set.cc | 1 + yacl/utils/spi/item.cc | 1 + 4 files changed, 4 insertions(+), 7 deletions(-) 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 {