./textproc/fmtlib, Formatting library

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]

Branch: CURRENT, Version: 8.0.1, Package name: fmtlib-8.0.1, 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.

Required to build:

Master sites:

SHA1: 79338d262ac521f9ff159963603fce20f15094e5
RMD160: e50872c1a3c70587d4594fe0cb7bb6c57f0345f3
Filesize: 786.734 KB

Version history: (Expand)

CVS history: (Expand)

   2021-07-14 09:31:10 by Adam Ciarcinski | Files touched by this commit (3) | Package updated
Log message:
fmtlib: updated to 8.0.1

Fixed the version number in the inline namespace
Added a missing presentation type check for std::string
Fixed a linkage error when mixing code built with clang and gcc
Fixed documentation issues
Removed dead code in FP formatter
Fixed various warnings and compilation issues

Enabled compile-time format string check by default.
Added compile-time formatting
Optimized handling of format specifiers during format string compilation. For \ 
example, hexadecimal formatting ("{:x}") is now 3-7x faster than \ 
before when using format_to with format string compilation and a stack-allocated \ 
Added the _cf user-defined literal to represent a compiled format string. It can \ 
be used instead of the FMT_COMPILE macro
Format string compilation now requires format functions of formatter \ 
specializations for user-defined types to be const
Added UDL-based named argument support to format string compilation
Added format string compilation support to fmt::print
Added initial support for compiling {fmt} as a C++20 module
Made symbols private by default reducing shared library size. For example there \ 
was a ~15% reported reduction on one platform
Optimized includes making the result of preprocessing fmt/format.h ~20% smaller \ 
with libstdc++/C++20 and slightly improving build times
Added support of ranges with non-const begin / end
Added support of std::byte and other formattable types to fmt::join
Implemented the default format for std::chrono::system_clock
Made more chrono specifiers locale independent by default. Use the 'L' specifier \ 
to get localized formatting.
Improved locale handling in chrono formatting
   2020-11-26 10:31:18 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
fmtlib: updated to 7.1.3

Fixed handling of buffer boundaries in format_to_n.
Fixed linkage errors when linking with a shared library.
Reintroduced ostream support to range formatters.
Worked around an issue with mixing std versions in gcc

Fixed floating point formatting with large precision.

Fixed ABI compatibility with 7.0.x.
Added the FMT_ARM_ABI_COMPATIBILITY macro to work around ABI incompatibility \ 
between GCC and Clang on ARM.
Worked around a SFINAE bug in GCC 8.
Fixed linkage errors when building with GCC's LTO.
Fixed a compilation error when building without __builtin_clz or equivalent.
Fixed a sign conversion warning.

Switched from Grisu3 to Dragonbox for the default floating-point formatting \ 
which gives the shortest decimal representation with round-trip guarantee and \ 
correct rounding.
Added an experimental unsynchronized file output API which, together with format \ 
string compilation, can give 5-9 times speed up compared to fprintf on common \ 
Added a formatter for std::chrono::time_point<system_clock>.
Added support for ranges with non-const begin/end to fmt::join.
Added a memory_buffer::append overload that takes a range.
Improved handling of single code units in FMT_COMPILE.
Added dynamic width support to format string compilation.
Improved error reporting for unformattable types: now you'll get the type name \ 
directly in the error message instead of the note.
Added the make_args_checked function template that allows you to write \ 
formatting functions with compile-time format string checks and avoid binary \ 
code bloat.
Replaced snprintf fallback with a faster internal IEEE 754 float and double \ 
formatter for arbitrary precision.
Made format_to_n and formatted_size part of the core API.
Added fmt::format_to_n overload with format string compilation.
Added fmt::format_to overload that take text_style.
Made the # specifier emit trailing zeros in addition to the decimal point.
Changed the default floating point format to not include .0 for consistency with \ 
std::format and std::to_chars. It is possible to get the decimal point and \ 
trailing zero with the # specifier.
Fixed an issue with floating-point formatting that could result in addition of a \ 
non-significant trailing zero in rare cases e.g. 1.00e-34 instead of 1.0e-34.
Made fmt::to_string fallback on ostream insertion operator if the formatter \ 
specialization is not provided.
Added support for the append mode to the experimental file API and improved \ 
fcntl.h detection.
Fixed handling of types that have both an implicit conversion operator and an \ 
overloaded ostream insertion operator.
Fixed a slicing issue in an internal iterator type.
Fixed an issue in locale-specific integer formatting.
Fixed handling of exotic code unit types.
Removed dependency on windows.h.
Optimized counting of decimal digits on MSVC.
Improved documentation.
Added the FMT_REDUCE_INT_INSTANTIATIONS CMake option that reduces the binary \ 
code size at the cost of some integer formatting performance. This can be useful \ 
for extremely memory-constrained embedded systems.
Added the FMT_USE_INLINE_NAMESPACES macro to control usage of inline namespaces.
Improved build configuration
   2020-09-12 11:32:07 by Makoto Fujiwara | Files touched by this commit (1)
Log message:
(textproc/fmtlib) regen PLIST
   2020-09-08 15:46:58 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
fmtlib: updated to 7.0.3

* Worked around broken ``numeric_limits`` for 128-bit integers
* Added error reporting on missing named arguments
* Stopped using 128-bit integers with clang-cl
* Fixed issues in locale-specific integer formatting

* Worked around broken ``numeric_limits`` for 128-bit integers
* Fixed compatibility with CMake 3.4
* Fixed handling of digit separators in locale-specific formatting

* Updated the inline version namespace name.
* Worked around a gcc bug in mangling of alias templates
* Fixed a linkage error on Windows
* Fixed minor issues with the documentation.

* Reduced the library size. For example, on macOS a stripped test binary
  statically linked with {fmt} `shrank from ~368k to less than 100k
* Added a simpler and more efficient `format string compilation API
* Optimized integer formatting: ``format_to`` with format string compilation
  and a stack-allocated buffer is now `faster than to_chars on both
  libc++ and libstdc++
* Optimized handling of small format strings.
* Applied extern templates to improve compile times when using the core API
  and ``fmt/format.h``
  For example, on macOS with clang the compile time of a test translation unit
  dropped from 2.3s to 0.3s with ``-O2`` and from 0.6s to 0.3s with the default
  settings (``-O0``).
* Named arguments are now stored on stack (no dynamic memory allocations) and
  the compiled code is more compact and efficient.
* Implemented compile-time checks for dynamic width and precision
* Added sentinel support to ``fmt::join``
* Added support for named args, ``clear`` and ``reserve`` to
* Added support for the ``'c'`` format specifier to integral types for
  compatibility with ``std::format``
* Replaced the ``'n'`` format specifier with ``'L'`` for compatibility with
  The ``'n'`` specifier can be enabled via the ``FMT_DEPRECATED_N_SPECIFIER``
* The ``'='`` format specifier is now disabled by default for compatibility with
  ``std::format``. It can be enabled via the ``FMT_DEPRECATED_NUMERIC_ALIGN``
* Removed the following deprecated APIs:
  * ``FMT_STRING_ALIAS`` and ``fmt`` macros - replaced by ``FMT_STRING``
  * ``fmt::basic_string_view::char_type`` - replaced by
  * ``convert_to_int``
  * ``format_arg_store::types``
  * ``*parse_context`` - replaced by ``*format_parse_context``
  * ``FMT_DEPRECATED_PERCENT`` - incompatible with ``std::format``
  * ``*writer`` - replaced by compiled format API
* Renamed the ``internal`` namespace to ``detail``
* Improved compatibility between ``fmt::printf`` with the standard specs
* Fixed handling of ``operator<<`` overloads that use ``copyfmt``
* Added the ``FMT_OS`` CMake option to control inclusion of OS-specific APIs
  in the fmt target. This can be useful for embedded platforms
  macro to prevent interferring with fuzzing of projects using {fmt}
* Fixed compatibility with emscripten
* Improved documentation
* Implemented various build configuration fixes and improvements
* Fixed various warnings and compilation issues
   2020-05-13 17:25:40 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
fmtlib: updated to 6.2.1

Fixed ostream support in sprintf
Fixed type detection when using implicit conversion to string_view and ostream \ 
operator<< inconsistently
   2020-04-08 11:39:38 by Adam Ciarcinski | Files touched by this commit (3) | Package updated
Log message:
fmtlib: updated to 6.2.0

* Improved error reporting when trying to format an object of a non-formattable type
* Reduced library size by ~10%.
* Always print decimal point if # is specified
* Implemented the 'L' specifier for locale-specific numeric formatting to \ 
improve compatibility with std::format. The 'n' specifier is now deprecated and \ 
will be removed in the next major release.
* Moved OS-specific APIs such as windows_error from fmt/format.h to fmt/os.h. \ 
You can define FMT_DEPRECATED_INCLUDE_OS to automatically include fmt/os.h from \ 
fmt/format.h for compatibility but this will be disabled in the next major \ 
* Added precision overflow detection in floating-point formatting.
* Implemented detection of invalid use of fmt::arg.
* Used type_identity to block unnecessary template argument deduction.
* Improved UTF-8 handling
* Added experimental dynamic argument storage
* Made fmt::join accept initializer_list
* Fixed handling of empty tuples
* Fixed handling of output iterators in format_to_n
* Fixed formatting of std::chrono::duration types to wide output
* Added const begin and end overload to buffers
* Added the ability to disable floating-point formatting via FMT_USE_FLOAT, \ 
FMT_USE_DOUBLE and FMT_USE_LONG_DOUBLE macros for extremely memory-constrained \ 
embedded system
* Made FMT_STRING work with constexpr string_view
* Implemented a minor optimization in the format string parser
* Improved attribute detection
* Improved documentation
* Fixed symbol visibility on Linux when compiling with -fvisibility=hidden
* Implemented various build configuration fixes and improvements
* Fixed various warnings and compilation issues
   2019-12-11 19:43:34 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
fmtlib: updated to 6.1.2

Fixed ABI compatibility with libfmt.so.6.0.0.
Fixed handling types convertible to std::string_view.
Made CUDA test an opt-in enabled via the FMT_CUDA_TEST CMake option.
Fixed sign conversion warnings.
   2019-12-07 14:56:58 by Adam Ciarcinski | Files touched by this commit (3) | Package updated
Log message:
fmtlib: updated to 6.1.1

Fixed shared library build on Windows.
Added a missing decimal point in exponent notation with trailing zeros.
Removed deprecated format_arg_store::TYPES.

{fmt} now formats IEEE 754 float and double using the shortest decimal \ 
representation with correct rounding by default.
Made the fast binary to decimal floating-point formatter the default, simplified \ 
it and improved performance. {fmt} is now 15 times faster than libc++'s \ 
std::ostringstream, 11 times faster than printf and 10% faster than \ 
double-conversion on dtoa-benchmark.
{fmt} no longer converts float arguments to double. In particular this improves \ 
the default (shortest) representation of floats and makes fmt::format consistent \ 
with std::for.
Made floating-point formatting output consistent with printf/iostreams.
Added support for 128-bit integers.
The overload of print that takes text_style is now atomic, i.e. the output from \ 
different threads doesn't interleave.
Made compile time in the header-only mode ~20% faster by reducing the number of \ 
template instantiations. wchar_t overload of vprint was moved from fmt/core.h to \ 
Added an overload of fmt::join that works with tuples.
Changed formatting of octal zero with prefix from "00" to "0.
The locale is now passed to ostream insertion (<<) operators.
Locale-specific number formatting now uses groupin.
Fixed handling of types with deleted implicit rvalue conversion to const char**.
Enums are now mapped to correct underlying types instead of int.
Enum classes are no longer implicitly converted to int.
Added basic_format_parse_context for consistency with C++20 std::format and \ 
deprecated basic_parse_context.
Fixed handling of UTF-8 in precision.
{fmt} can now be installed on Linux, macOS and Windows with Conda using its \ 
conda-forge package.
Added a CUDA test.