Skip to content

0.2.5 release

Compare
Choose a tag to compare
@rodrimati1992 rodrimati1992 released this 09 Sep 19:15
· 138 commits to master since this release
eb312b1

This release features compile-time assert macros with formatting.

Changelog

Added the "assert" cargo feature,defining the assertc/assertc_eq/assertc_ne macros for compile-time assertions with formatting.

Added custom formatting support in the const_format::fmt-based formatting macros, by prefixing any argument with |identifier|,accessing a Formatter to format that argument however one wants.

Added concatc macro for concatenating std/user-defined types into a &'static str constant.

Added const_format::Result alias for std::result::Result<(), const_format::Error>.

Added const_format::fmt::ToResult type for converting () and const_format::Result to const_format::Result.

Added Pwrapper::const_eq methods for comparing many std types in the assertc_eq/assertc_ne macros.

Added Pwrapper::const_display_fmt methods for NonZero* types.

Added support for passing concat!(....) as the format string.