This is an automated email from the ASF dual-hosted git repository.
zwoop pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/master by this push:
new bd0700b7ab cripts: build against fmt 11+ (incl. 12.x) (#13375)
bd0700b7ab is described below
commit bd0700b7ab310a77fb9743ea7390ac90577be67b
Author: Leif Hedstrom <[email protected]>
AuthorDate: Tue Jul 14 12:39:13 2026 +0200
cripts: build against fmt 11+ (incl. 12.x) (#13375)
fmt 11 dropped fmt::format/vformat from fmt/core.h; include fmt/format.h
instead, and use fmt::format directly to avoid a deprecated format_string
conversion. Still builds on fmt 8.1+.
---
include/cripts/Instance.hpp | 5 ++++-
include/cripts/Lulu.hpp | 2 +-
include/cripts/Preamble.hpp | 2 +-
3 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/include/cripts/Instance.hpp b/include/cripts/Instance.hpp
index bf0af5f622..d29905a2d1 100644
--- a/include/cripts/Instance.hpp
+++ b/include/cripts/Instance.hpp
@@ -18,9 +18,12 @@
#pragma once
#include <array>
+#include <utility>
#include <variant>
#include <unordered_map>
+#include <fmt/format.h>
+
#include "ts/ts.h"
#include "ts/remap.h"
@@ -106,7 +109,7 @@ public:
debug(fmt::format_string<T...> fmt, T &&...args) const
{
if (DebugOn()) {
- auto str = fmt::vformat(fmt, fmt::make_format_args(args...));
+ auto str = fmt::format(fmt, std::forward<T>(args)...);
Dbg(dbg_ctl_cript, "%s", str.c_str());
}
diff --git a/include/cripts/Lulu.hpp b/include/cripts/Lulu.hpp
index 4025b8527b..7e3265c271 100644
--- a/include/cripts/Lulu.hpp
+++ b/include/cripts/Lulu.hpp
@@ -26,7 +26,7 @@
#include <type_traits>
#include <chrono>
-#include <fmt/core.h>
+#include <fmt/format.h>
#include "swoc/TextView.h"
#include "ts/ts.h"
diff --git a/include/cripts/Preamble.hpp b/include/cripts/Preamble.hpp
index 5a2b4b8e96..8d8d5f0bf6 100644
--- a/include/cripts/Preamble.hpp
+++ b/include/cripts/Preamble.hpp
@@ -27,7 +27,7 @@
#include <climits>
#include <iostream> // Useful for debugging
-#include <fmt/core.h>
+#include <fmt/format.h>
#include "ts/ts.h"
#include "ts/remap.h"