Releases: rodrimati1992/const_panic
0.2.10 release
This release fixes how panicking is implemented to not add nul bytes after what the user prints in a panic.
0.2
0.2.10
Fixed internal use of the panic macro to not append nul bytes to the output.
Added const_panic::utils::bytes_up_to
function.
0.2.7 release
This release adds a concat_
macro, for concatenating PanicFmt
values into a &'static str
.
Changelog
0.2.7
Added concat_
macro, which requires "non_basic"
feature.
Added TypeDelim::{close, open}
methods.
Made ArrayString::as_bytes
take constant time when the "rust_1_64"
feature is enabled.
Made "derive"
feature enable "non_basic"
feature.
Added konst_kernel = 0.3
dependency, enabled by "non_basic"
feature.
0.2.5 release
Adds char
, slice-of-char
, and core::str::Utf8Error
formatting support.
Changelog
0.2.5
Added "rust_1_64"
feature, which enables formatting impls which require newer versions.
Added core::str::Utf8Error
formatting (requires "rust_1_64"
feature)
Added formatting support for char
and slices of char
.
0.2.0 release
This release adds a PanicFmt
derive, generic type support to impl_panicfmt
macro, hexadecimal/binary formatting, and a concat_assert
assertion macro.
Changelog
0.2
0.2.0
Added concat_assert
macro.
Added PanicFmt
derive macro.
Added "derive"
crate feature, to enable the PanicFmt
derive.
Made breaking changes to impl_panicfmt
to allow generic implementations with type and const parameters.
Added NumberFmt
enum, for choosing how numbers are formatted.
Added FmtArg::{BIN, ALT_BIN, HEX. ALT_HEX}
associated constants.
Added FmtArg::{set_hex, set_bin}
methods.
Added PanicVal::from_short_str
constructor.
Added support for binary and hexadecimal formatting in macros.
Added PackedFmtArg
type (which requires the non_basic feature).
Added const_panic::fmt::SHORT_STRING_CAP
constant with the capacity of a ShortString
.
Changed PanicVal
such that only strings can be left or right padded.
Removed the PanicVal::{set_leftpad, set_rightpad}
methods.
Declared const_panic_proc_macros
crate, depended by const_panic
when the "derive"
feature is enabled.
0.1
0.1.1
Added PanicFmt
-based formatting for these types(all of which require the "non_basic"
feature):
Option
s of integer, bool, and&str
Option
s of arrays and slices (of integer, bool, and&str
)NonZero*
integers, andOption
s of themNonNull
, andOption
s of them*const T
and*mut T
std::cmp::Ordering
, andOption
s of themstd::sync::atomic::Ordering
std::ops::Range*
types, parameterized withusize
.()
std::marker::PhantomData
std::marker::PhantomPinned
StdWrapper
Added these macros:
unwrap_ok
unwrap_err
unwrap_some
Fixed signature of to_panicvals for arrays and slices of PanicVals, by adding a FmtArg
parameter.
0.1.0 release
This initial release comes with the ability to do const panics with formatting.
The types that can be formatted are all the primitive types, and user-defined types that implement formatting by using the macros from this crate.