Download Latest Version 12.2.0 source code.tar.gz (738.4 kB)
Email in envelope

Get an email when there's a new version of fmt

Home / 12.2.0
Name Modified Size InfoDownloads / Week
Parent folder
fmt-12.2.0.intoto.jsonl 2026-06-16 20.0 kB
fmt-12.2.0.zip 2026-06-16 1.5 MB
12.2.0 source code.tar.gz 2026-06-16 738.4 kB
12.2.0 source code.zip 2026-06-16 795.6 kB
README.md 2026-06-16 9.0 kB
Totals: 5 Items   3.0 MB 2
  • Added a C11 API that brings fast, type-safe formatting to C. The new fmt-c library and fmt/fmt-c.h header use _Generic to dispatch on argument types and outperform printf/sprintf. For example:

```c++ #include <fmt/fmt-c.h>

fmt_print(stdout, "The answer is {}.\n", 42); ```

(https://github.com/fmtlib/fmt/issues/4663, https://github.com/fmtlib/fmt/pull/4671, https://github.com/fmtlib/fmt/pull/4696, https://github.com/fmtlib/fmt/issues/4693, https://github.com/fmtlib/fmt/pull/4694, https://github.com/fmtlib/fmt/pull/4712, https://github.com/fmtlib/fmt/pull/4789). Thanks @Soumik15630m, @Ferdi265 and @localspook.

Method Time (ns)
fmt (full) 22.07
fmt (compact) 29.55
ryu 35.21
double-conversion 81.81
sprintf 726.27
ostringstream 864.34
Source: README.md, updated 2026-06-16