mrkeyoor.comAsk

fmtlib/fmttested 08 Oct 2026commit 10cda46

fmt review

The recorded build at commit 10cda46 succeeded in 102 seconds, and all 22 recorded CTest checks passed.

  • Install 2 s
22/22tests passed
  • Build 102 s
Dev Toolsevaluationupdated 02 Nov 2026
+50stars / 7d

{fmt} is a C++ library for formatting values into strings and printing them. Its README documents brace-based format strings, custom-type support and container output.

Verdict

The recorded build at commit 10cda46 succeeded in 102 seconds, and all 22 recorded CTest checks passed. That supports evaluating {fmt} for C++ formatting. Compare its facilities with what your standard library already provides, then check your application's includes and custom formatters. The run establishes no application speed advantage or release-specific upgrade qualification.

We ran it

Lab card: what happened when we ran fmt
Lab card from our sandbox run
Screenshot of fmt (fmt.dev)
fmt.dev
Install✓ · 2s
Build✓ · 102s
Tests✓ · 0s22 passed · 0 failed of 22 (ctest)
Repo145 files~72,132 lines of source · 3.2 MB · 9 CI workflows · tests dir

Answers from our run

Does fmt build from source?

Dependencies installed in 2 seconds, and the build succeeded in 102 seconds. We cloned commit 10cda46 into a clean Debian container with 3 CPUs and no project-specific setup.

Do fmt's tests pass?

Yes. The project's own test command finished in 0s and reported 22 passed, 0 failed (ctest).

Who should not use fmt?

Teams that require upgrades without reviewing includes: release 12.2.0 documents header changes.

What are the alternatives to fmt?

Boost.Format, spdlog. The recorded build at commit 10cda46 succeeded in 102 seconds, and all 22 recorded CTest checks passed.

Setup4/5On the stated editorial scale, successful installation, build and all 22 recorded CTest checks support evaluation; consuming-application integration was not checked.
Docs4/5The supplied README has concrete formatting examples and header-only configuration guidance, and the release notes identify include changes. This was not an exhaustive documentation audit.
Community5/5Last push on 2026-11-01 and 25,926 stars.Editor’s note: The supplied activity snapshot does not establish maintainer response times, support capacity or the handling of a representative set of user reports.
Maturity3/5The recorded repository checks passed and release notes document compatibility changes. Production behavior, downstream compatibility and upgrade execution were not evaluated.

How we score

Discussed on

  1. hnFmt – A Modern Formatting Library44 points
  2. hnFmtlib / fmt A modern formatting library7 points
  3. hnFmt: A Modern and Lightweight C++ Formatting Library3 points

Who it’s for

C++ maintainers evaluating a shared formatting interface for diagnostic strings and command output.
Teams that need custom-type formatting and can maintain those formatters.
Developers comparing an additional formatting dependency with the facilities available in their own standard library.

Who it’s NOT for

Teams that require upgrades without reviewing includes: release 12.2.0 documents header changes.
Developers whose main requirement is asynchronous logging or rotating files: evaluate spdlog for those facilities.
Applications expecting locale-sensitive formatting by default: the README specifies locale independence by default.

Setup reality

The recorded October 8, 2026 sandbox run at commit 10cda46 installed {fmt} in 2 seconds and built it in 102 seconds. CTest recorded 22 passed checks and zero failures. The recorded test-step duration was 0 seconds; that timer value does not establish zero execution time.

The configuration listed 3 CPUs, 8 GB RAM and image lab-cpp:1. Actual compiler and operating-system versions require the raw toolchain logs. The README documents an optional header-only configuration through FMT_HEADER_ONLY, but the supplied run does not identify or compare integration modes.

Does another formatting dependency earn its place?

Choose {fmt} for evaluation when your C++ application needs a shared way to turn values into diagnostic messages, command output or strings for another component. The README documents positional arguments, custom-type support and container output. The adoption question is whether those facilities justify integrating and maintaining another library in your build.

The README lists implementations of C++20 std::format and C++23 std::print. If your supported standard libraries already meet your formatting requirements, check what adding {fmt} would contribute before adopting it. The supplied run contains no comparison with those standard-library facilities and no application throughput benchmark.

What happened when we ran it

The recorded sandbox run installed {fmt} in 2 seconds, built it in 102 seconds, and recorded 22 passed CTest checks with zero failures. The test step's recorded duration was 0 seconds. Treat that as the timer value supplied by the runner, rather than evidence that executing the checks takes no time.

The run used commit 10cda46 on October 8, 2026. Its configuration listed 3 CPUs, 8 GB RAM and image lab-cpp:1. The image label does not establish the compiler or operating-system version. The checkout contained 145 files, approximately 72,132 lines of source and occupied 3.2 MB. The scan found nine CI workflow files and a tests directory, with no Dockerfile.

These results establish a successful repository build and the recorded CTest outcome. They do not establish application speed, compatibility across your toolchains or the behavior of your own formatters. No new tests were performed for this correction.

What the format checks establish

The README illustrates a decimal-integer format specifier paired with a string and says this produces a compile-time error in C++20. That is a specific example of checking a format string before execution. It does not establish that every formatting error in an application will be caught at compile time.

For messages supplied or edited at runtime, check the API and error behavior your application will use. Include representative custom types and malformed input in that evaluation. The recorded repository checks do not describe those application cases.

The README also specifies locale independence by default. If your display text must follow a user's local number or date conventions, make that a requirement when evaluating the formatting calls.

Review headers before upgrading

The README documents an optional header-only configuration enabled with FMT_HEADER_ONLY. The supplied measurements do not compare that mode with a compiled-library integration or measure compilation of a consuming application.

Release 12.2.0, dated June 16, 2026 in the supplied release metadata, documents two concrete include changes. Code relying on fmt/core.h to pull in fmt/format.h must include fmt/format.h directly or define FMT_DEPRECATED_HEAVY_CORE. The release also moves the std::byte formatter from fmt/format.h to fmt/std.h.

Those changes give maintainers a useful starting point for an upgrade review: inspect the includes and formatters their application uses. The measured checkout is commit 10cda46; the supplied evidence does not identify that checkout as the 12.2.0 release or document an upgrade test from an earlier version.

Compare the requirement before the library

Boost.Format supports user-defined types through an ostream insertion operator. Compare it when your existing types already provide those operators, particularly in a codebase that uses Boost. The supplied evidence establishes that integration option, without a measured setup or performance advantage over {fmt}.

spdlog documents optional asynchronous logging and rotating log files. Evaluate it when delivery and file rotation are part of the requirement. Its README also describes formatting through the fmt library, so choosing a logger can still involve {fmt} underneath.

For formatting alone, first compare the required output and custom-type behavior with the standard-library facilities available in your supported builds. For logging, include delivery and retention requirements in the comparison.

Activity, ratings and the next check

The supplied repository metadata records a last push on November 1, 2026. The supplied feed shows automation pull requests dated November 1, 2026. These observations establish recent activity, without establishing maintainer response times or support capacity.

The numerical cards are editorial judgments on a five-point scale. A score of 1 means a demonstrated blocking problem, 3 means a usable path with material limits, and 5 requires independently checked coverage across the stated scope; 2 and 4 fall between those anchors. Setup scores 4 because the recorded install, build and checks succeeded, while application integration remains unchecked. Documentation scores 4 for concrete examples and configuration guidance, without an exhaustive documentation audit. Maturity scores 3 because the repository checks passed and the release notes document compatibility changes, while production behavior remains unassessed. Community support is unassessed because the evidence does not establish support capacity or response times.

Before adopting {fmt}, compile a representative application message and a custom formatter in your own build. If upgrading, review the documented header changes as part of that check.

Alternatives

ProjectWhat it isPick it when
Boost.FormatA formatting library that supports user-defined types through ostream insertion operators.Compare it when existing ostream operators and a Boost-based codebase are the main integration considerations.
spdlog gh↗A C++ logging library with optional asynchronous operation and rotating log files.Evaluate it when log delivery and file rotation are requirements; its README describes fmt-based formatting.

Sources

  1. fmt README
  2. Release 12.2.0
  3. Repository metadata
  4. Recent issues and PRs
  5. Boost.Format README
  6. spdlog README

More dev tools reviews