| CARVIEW |
Select Language
HTTP/2 200
expires: Thu, 19 Nov 1981 08:52:00 GMT
cache-control: no-store, no-cache, must-revalidate
pragma: no-cache
set-cookie: PHPSESSID=l81jpvbs42mmm8r0cslhp13ejm; path=/
content-type: text/html; charset=UTF-8
date: Sun, 28 Dec 2025 17:16:54 GMT
server: Apache
pkgsrc.se | The NetBSD package collection
archivers
audio
benchmarks
biology
cad
chat
comms
converters
cross
crosspkgtools
databases
devel
doc
editors
emulators
filesystems
finance
fonts
games
geography
graphics
ham
inputmethod
lang
mail
math
mbone
meta-pkgs
misc
multimedia
net
news
parallel
pkgtools
print
regress
security
shells
sysutils
textproc
fmtlib
time
wip
wm
www
x11
* = Virtual Category
Path to this page:
./textproc/fmtlib, Formatting library
[
Branch: CURRENT, Version: 12.1.0, Package name: fmtlib-12.1.0, Maintainer: pkgsrc-users
fmt (formerly cppformat) is an open-source formatting library. It can be used
as a fast and safe alternative to printf and IOStreams.
Navigation:
-
Browse pkgsrc
(this page)
archivers
audio
benchmarks
biology
cad
chat
comms
converters
cross
crosspkgtools
databases
devel
doc
editors
emulators
filesystems
finance
fonts
games
geography
graphics
ham
inputmethod
lang
math
mbone
meta-pkgs
misc
multimedia
net
news
parallel
pkgtools
regress
security
shells
sysutils
textproc
fmtlibtime
wip
wm
www
x11
* = Virtual Category
Path to this page:
./textproc/fmtlib, Formatting library
[
CVSweb ] [
Homepage ] [
RSS ] [
Required by ] [
Add to tracker ]
Branch: CURRENT, Version: 12.1.0, Package name: fmtlib-12.1.0, Maintainer: pkgsrc-users
fmt (formerly cppformat) is an open-source formatting library. It can be used
as a fast and safe alternative to printf and IOStreams.
Master sites:
Filesize: 694.745 KBVersion history: (Expand)
- (2025-11-02) Updated to version: fmtlib-12.1.0
- (2025-09-21) Updated to version: fmtlib-12.0.0
- (2025-05-06) Updated to version: fmtlib-11.2.0
- (2025-02-27) Updated to version: fmtlib-11.1.4
- (2025-01-27) Updated to version: fmtlib-11.1.3
- (2025-01-13) Updated to version: fmtlib-11.1.2
CVS history: (Expand)
| 2025-11-02 14:50:46 by Thomas Klausner | Files touched by this commit (2) | |
Log message: fmtlib: update to 12.1.0. # 12.1.0 - 2025-10-29 - Optimized `buffer::append`, resulting in up to ~16% improvement on spdlog benchmarks (https://github.com/fmtlib/fmt/pull/4541). Thanks @fyrsta7. - Worked around an ABI incompatibility in `std::locale_ref` between clang and gcc (https://github.com/fmtlib/fmt/issues/4573). - Made `std::variant` and `std::expected` formatters work with `format_as` (https://github.com/fmtlib/fmt/issues/4574, https://github.com/fmtlib/fmt/pull/4575). Thanks @phprus. - Made `fmt::join<string_view>` work with C++ modules (https://github.com/fmtlib/fmt/issues/4379, https://github.com/fmtlib/fmt/pull/4577). Thanks @Arghnews. - Exported `fmt::is_compiled_string` and `operator""_cf` from the module (https://github.com/fmtlib/fmt/pull/4544). Thanks @CrackedMatter. - Fixed a compatibility issue with C++ modules in clang (https://github.com/fmtlib/fmt/pull/4548). Thanks @tsarn. - Added support for cv-qualified types to the `std::optional` formatter (https://github.com/fmtlib/fmt/issues/4561, https://github.com/fmtlib/fmt/pull/4562). Thanks @OleksandrKvl. - Added demangling support (used in exception and `std::type_info` formatters) for libc++ and clang-cl (https://github.com/fmtlib/fmt/issues/4542, https://github.com/fmtlib/fmt/pull/4560, https://github.com/fmtlib/fmt/issues/4568, https://github.com/fmtlib/fmt/pull/4571). Thanks @FatihBAKIR and @rohitsutreja. - Switched to global `malloc`/`free` to enable allocator customization (https://github.com/fmtlib/fmt/issues/4569, https://github.com/fmtlib/fmt/pull/4570). Thanks @rohitsutreja. - Made the `FMT_USE_CONSTEVAL` macro configurable by users (https://github.com/fmtlib/fmt/pull/4546). Thanks @SnapperTT. - Fixed compilation with locales disabled in the header-only mode (https://github.com/fmtlib/fmt/issues/4550). - Fixed compilation with clang 21 and `-std=c++20` (https://github.com/fmtlib/fmt/issues/4552). - Fixed a dynamic linking issue with clang-cl (https://github.com/fmtlib/fmt/issues/4576, https://github.com/fmtlib/fmt/pull/4584). Thanks @FatihBAKIR. - Fixed a warning suppression leakage on gcc (https://github.com/fmtlib/fmt/pull/4588). Thanks @ZedThree. - Made more internal color APIs `constexpr` (https://github.com/fmtlib/fmt/pull/4581). Thanks @ishani. - Fixed compatibility with clang as a host compiler for NVCC (https://github.com/fmtlib/fmt/pull/4564). Thanks @valgur. - Fixed various warnings and lint issues (https://github.com/fmtlib/fmt/issues/4565, https://github.com/fmtlib/fmt/pull/4572, https://github.com/fmtlib/fmt/pull/4557). Thanks @LiangHuDream and @teruyamato0731. - Improved documentation (https://github.com/fmtlib/fmt/issues/4549, https://github.com/fmtlib/fmt/pull/4551, https://github.com/fmtlib/fmt/issues/4566, https://github.com/fmtlib/fmt/pull/4567, https://github.com/fmtlib/fmt/pull/4578,). Thanks @teruyamato0731, @petersteneteg and @zimmerman-dev. |
| 2025-09-21 20:15:09 by Thomas Klausner | Files touched by this commit (56) |
Log message: *: recursive bump for fmtlib 12 |
| 2025-09-21 20:14:08 by Thomas Klausner | Files touched by this commit (3) | |
Log message:
fmtlib: update to 12.0.0.
# 12.0.0 - 2025-09-17
- Optimized the default floating point formatting
(https://github.com/fmtlib/fmt/issues/3675,
https://github.com/fmtlib/fmt/issues/4516). In particular, formatting a
`double` with format string compilation into a stack allocated buffer is
more than 60% faster in version 12.0 compared to 11.2 according to
[dtoa-benchmark](https://github.com/fmtlib/dtoa-benchmark):
```
Function Time (ns) Speedup
fmt11 34.471 1.00x
fmt12 21.000 1.64x
```
<img width="766" height="609" \
src="https://github.com/user-attachments/assets/d7d768ad-7543-468c-b0bb-449abf73b31b" \
/>
- Added `constexpr` support to `fmt::format`. For example:
```c++
#include <fmt/compile.h>
using namespace fmt::literals;
std::string s = fmt::format(""_cf, 42);
```
now works at compile time provided that `std::string` supports `constexpr`
(https://github.com/fmtlib/fmt/issues/3403,
https://github.com/fmtlib/fmt/pull/4456). Thanks @msvetkin.
- Added `FMT_STATIC_FORMAT` that allows formatting into a string of the exact
required size at compile time.
For example:
```c++
#include <fmt/compile.h>
constexpr auto s = FMT_STATIC_FORMAT("{}", 42);
```
compiles to just
```s
__ZL1s:
.asciiz "42"
```
It can be accessed as a C string with `s.c_str()` or as a string view with
`s.str()`.
- Improved C++20 module support
- Switched to using estimated display width in precision. For example:
```c++
fmt::print("|{:.4}|\n|1234|\n", "๐ฑ๐ฑ๐ฑ");
```
prints
\

because `๐ฑ` has an estimated width of 2
- Fix interaction between debug presentation, precision, and width for strings
- Implemented allocator propagation on `basic_memory_buffer` move
- Fixed an ambiguity between `std::reference_wrapper<T>` and `format_as`
formatters
- Removed the following deprecated APIs:
- `has_formatter`: use `is_formattable` instead,
- `basic_format_args::parse_context_type`,
`basic_format_args::formatter_type` and similar aliases in context types,
- wide stream overload of `fmt::printf`,
- wide stream overloads of `fmt::print` that take text styles,
- `is_*char` traits,
- `fmt::localtime`.
- Deprecated wide overloads of `fmt::fprintf` and `fmt::sprintf`.
- Improved diagnostics for the incorrect usage of `fmt::ptr`
- Made handling of ANSI escape sequences more efficient
- Fixed a buffer overflow on all emphasis flags set
- Fixed an integer overflow for precision close to the max `int` value.
- Fixed compatibility with WASI (https://github.com/fmtlib/fmt/issues/4496,
- Fixed `back_insert_iterator` detection, preventing a fallback on slower path
that handles arbitrary iterators
- Fixed handling of invalid glibc `FILE` buffers
- Added `wchar_t` support to the `std::byte` formatter
- Changed component prefix from `fmt-` to `fmt_` for compatibility with
NSIS/CPack on Windows, e.g. `fmt-doc` changed to `fmt_doc`
- Added the `FMT_CUSTOM_ASSERT_FAIL` macro to simplify providing a custom
`fmt::assert_fail` implementation
- Switched to `FMT_THROW` on reporting format errors so that it can be
overriden by users when exceptions are disabled
- Improved master project detection and disabled install targets when using
{fmt} as a subproject by default
- Made various code improvements
- Added Conan instructions to the docs
- Removed Bazel files to avoid issues with downstream packaging
- Added more entries for generated files to `.gitignore`
- Fixed various warnings and compilation issues
|
| 2025-05-06 15:35:04 by Thomas Klausner | Files touched by this commit (2) | |
Log message:
fmtlib: update to 11.2.0.
# 11.2.0 - 2025-05-03
- Added the `s` specifier for `std::error_code`. It allows formatting an error
message as a string. For example:
```c++
#include <fmt/std.h>
int main() {
auto ec = std::make_error_code(std::errc::no_such_file_or_directory);
fmt::print("{:s}\n", ec);
}
```
prints
```
No such file or directory
```
(The actual message is platform-specific.)
- Fixed formatting of `std::chrono::local_time` and `tm`
For example ([godbolt](https://www.godbolt.org/z/8o4b1PPn5)):
```c++
#include <fmt/chrono.h>
int main() {
std::chrono::zoned_time zt(
std::chrono::current_zone(),
std::chrono::system_clock::now());
fmt::print("{}", zt.get_local_time());
}
```
is now formatted consistenly across platforms.
- Added diagnostics for cases when timezone information is not available.
For example:
```c++
fmt::print("{:Z}", std::chrono::local_seconds());
```
now gives a compile-time error.
- Deprecated `fmt::localtime` in favor of `std::localtime`.
- Fixed compilation with GCC 15 and C++20 modules enabled
- Fixed handling of named arguments in format specs
- Added error reporting for duplicate named arguments
- Fixed formatting of `long` with `FMT_BUILTIN_TYPES=0`
- Optimized `text_style` using bit packing
- Added support for incomplete types
- Fixed a flush issue in `fmt::print` when using libstdc++
- Fixed `fmt::println` usage with `FMT_ENFORCE_COMPILE_STRING` and legacy
compile-time checks
- Removed legacy header `fmt/core.h` from docs
- Worked around limitations of `__builtin_strlen` during constant evaluation
- Worked around a bug in MSVC v141
- Removed the `fmt_detail` namespace
- Removed specializations of `std::is_floating_point` in tests
- Fixed a CMake error when setting `CMAKE_MODULE_PATH` in the pedantic mode
- Updated the Bazel config
|
| 2025-02-26 22:28:41 by Adam Ciarcinski | Files touched by this commit (2) | |
Log message: fmtlib: updated to 11.1.4 11.1.4 - 2025-02-26 - Fixed ABI compatibility with earlier 11.x versions on Windows - Improved the logic of switching between fixed and exponential format for `float` - Moved `is_compiled_string` to the public API - Simplified implementation of `operator""_cf` - Fixed `__builtin_strlen` detection - Fixed handling of BMI paths with the Ninja generator - Fixed gcc 8.3 compile errors - Fixed a bogus MSVC warning |
| 2025-01-27 11:00:57 by Adam Ciarcinski | Files touched by this commit (2) | |
Log message: fmtlib: updated to 11.1.3 11.1.3 Fixed compilation on GCC 9.4 Worked around an internal compiler error when using C++20 modules with GCC 14.2 \ and earlier Worked around a bug in GCC 6 Fixed an issue caused by instantiating formatter<const T> Fixed formatting into std::ostreambuf_iterator when using format string compilation Restored a constraint on the map formatter so that it correctly reports as \ unformattable when the element is Reduced the size of format specs Readded args() to fmt::format_context Fixed a bogus MSVC warning Fixed a pedantic mode error in the CMake config |
| 2025-01-13 10:53:59 by Adam Ciarcinski | Files touched by this commit (2) | |
Log message:
fmtlib: updated to 11.1.2
11.1.2
Fixed ABI compatibility with earlier 11.x versions
Added wchar_t support to the std::bitset formatter
Prefixed CMake components with fmt- to simplify usage of {fmt} via add_subdirectory
Updated docs for meson
Fixed a compilation error in chrono on nvcc
Fixed various warnings
|
| 2024-12-29 17:49:52 by Adam Ciarcinski | Files touched by this commit (2) | |
Log message:
fmtlib: updated to 11.1.1
11.1.1
Fixed ABI compatibility with earlier 11.x versions
Defined CMake components (core and doc) to allow docs to be installed separately
11.1.0
Improved C++20 module support
Reduced debug (unoptimized) binary code size and the number of template \
instantiations when passing formatting arguments. For example, unoptimized \
binary code size for fmt::print("{}", 42) was reduced by ~40% on GCC \
and ~60% on clang (x86-64).
GCC:
Before: 161 instructions of which 105 are in reusable functions (godbolt).
After: 116 instructions of which 60 are in reusable functions (godbolt).
Clang:
Before: 310 instructions of which 251 are in reusable functions (godbolt).
After: 194 instructions of which 135 are in reusable functions (godbolt).
Added an experimental fmt::writer API that can be used for writing to different \
destinations such as files or strings
Added width and alignment support to the formatter of std::error_code.
Made std::expected<void, E> formattable.
Made fmt::is_formattable<void> SFINAE-friendly
Added support for _BitInt formatting when using clang
Added the n specifier for tuples and pairs
Added support for tuple-like types to fmt::join
Made more types formattable at compile time
Implemented a more efficient compile-time fmt::formatted_size
Fixed compile-time formatting of some string types
Made compiled version of fmt::format_to work with \
std::back_insert_iterator<std::vector<char>>
Added a formatter for std::reference_wrapper
Added experimental padding support (glibc strftime extension) to %m, %j and %Y
Made microseconds formatted as us instead of ยตs if the Unicode support is disabled
Fixed an unreleased regression in transcoding of surrogate pairs
Made fmt::appender satisfy std::output_iterator concept
Made std::iterator_traits<fmt::appender> standard-conforming
Made it easier to reuse fmt::formatter<std::string_view> for types with an \
implicit conversion to std::string_view
Made it possible to disable <filesystem> use via FMT_CPP_LIB_FILESYSTEM \
for compatibility with some video game console SDKs, e.g. Nintendo Switch SDK
Fixed compatibility with platforms that use 80-bit long double
Added support for UTF-32 code units greater than 0xFFFF in fill
Fixed handling of legacy encodings on Windows with GCC
Made fmt::to_string take fmt::basic_memory_buffer by const reference
Added fmt::dynamic_format_arg_store::size
Removed the ability to control locale usage via an undocumented \
FMT_STATIC_THOUSANDS_SEPARATOR in favor of FMT_USE_LOCALE.
Renamed FMT_EXCEPTIONS to FMT_USE_EXCEPTIONS for consistency with other similar \
macros.
Improved include directory ordering to reduce the chance of including incorrect \
headers when using multiple versions of {fmt}
Made it possible to compile a subset of {fmt} without the C++ runtime.
Improved documentation and README
Improved the documentation generator
Improved CI
Fixed various warnings and compilation issues
|
