From ddf34696d9fe61431ceccab7fa9854a8d3bf9bcd Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 16 Aug 2024 13:42:00 +0800 Subject: [PATCH] Update dependency com_github_fmtlib_fmt to v11 (#350) * Update dependency com_github_fmtlib_fmt to v11 * Fix --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: anakinxc --- bazel/repositories.bzl | 6 +++--- 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 + 5 files changed, 7 insertions(+), 10 deletions(-) diff --git a/bazel/repositories.bzl b/bazel/repositories.bzl index 25b6599..9dcaf31 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 85415e6..467b255 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 5637bcd..18cb869 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 e93e6f0..c938067 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 e3ef701..d3e1dca 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 {