0.7.4 - 2024-09-15
- Add explicit
len
andis_empty
methods toNiceWrapper
to avoid deref.
0.7.3 - 2024-09-05
- Miscellaneous code cleanup and lints
- Bump
brunch
to0.6
0.7.2 - 2024-07-25
- Miscellaneous code cleanup and lints
0.7.1 - 2024-05-19
- Add various
#[inline]
hints to improve downstream optimization passes.
0.7.0 - 2024-02-08
Borrow<[u8]>
forNice*
typesdactyl::int_div_float
dactyl::div_mod
0.6.0 - 2023-10-15
IntDivFloat
trait
SaturatingFrom
is now implemented to/from all primitive integer types, even in cases where saturation isn't ever necessary, likeT->T
NiceU8::as_bytes2
is nowconst
NiceU8::as_str2
is nowconst
- Drop
num-traits
dependency
div_mod
int_div_float
(useIntDivFloat::div_float
instead)
0.5.2 - 2023-10-05
- Minor code lints and cleanup
0.5.1 - 2023-07-13
- Update dev dependencies
0.5.0 - 2023-06-01
- Bump MSRV to
1.70
- Replace (most)
unsafe
blocks w/ safe alternatives - Add debug/assertions around remaining
unsafe
blocks for extra/redundant test coverage - CI: run tests in both debug and release modes
- CI: test MSRV
NiceElapsed::max
0.4.8 - 2023-02-16
traits::HexToUnsigned
traits::HexToSigned
- Reduce sample sizes for miri tests (lower memory usage, etc)
0.4.7 - 2023-01-26
- Bump brunch
0.4
- Fix ci badge (docs)
0.4.6 - 2022-11-03
- Improved documentation.
0.4.5 - 2022-09-09
- Optimize
NiceFloat::compact_bytes
/NiceFloat::compact_str
NiceFloat::precise_bytes
/NiceFloat::precise_str
incorrectly truncatedNiceFloat::overflow
0.4.4 - 2022-09-06
dactyl::total_cmp!
(total float comparison)FloatKind
NiceFloat
NicePercent
output is now closer toformat!("{:0.02}%", num * 100.0)
, but will occasionally vary ±0.01% due to differences in rounding (NicePercent
rounds up onx.xxxx5
).
0.4.3 - 2022-09-02
NiceElapsed::dhms
NiceElapsed
now supports "days"
NiceElapsed::max
(moot now that days are supported)
0.4.2 - 2022-08-13
traits::Inflection
traits::NiceInflection
0.4.1 - 2022-08-11
- Bump MSRV
1.63
0.4.0 - 2022-06-18
- Bump MSRV
1.61
- The
NiceU*
andNicePercent
structs are now type aliases NicePercent::default
is now equivalent toFrom<0.0>
NiceU*::default
is now equivalent toFrom<0>
- Slightly faster
NiceU8
,NiceU16
instantiation
dactyl::div_mod
(generic)- impl
From<NicePercent>
forString
- impl
From<NicePercent>
forVec<u8>
- impl
From<NiceU*>
forString
- impl
From<NiceU*>
forVec<u8>
- impl
From<Option<T>>
(whereFrom<T>
) forNicePercent
- impl
From<Option<T>>
(whereFrom<T>
) forNiceU*
dactyl::div_mod_u8
(use the new generic version instead)dactyl::div_mod_u16
dactyl::div_mod_u32
dactyl::div_mod_u64
dactyl::div_mod_u128
dactyl::div_mod_usize
dactyl::write_time
dactyl::write_u8
NicePercent::as_string
(useFrom<NicePercent>
instead)NicePercent::as_vec
(useFrom<NicePercent>
instead)NiceU*::as_string
(useFrom<NiceU*>
instead)NiceU*::as_vec
(useFrom<NiceU*>
instead)
0.3.4 - 2022-04-14
- Make unit tests less glacial for
miri
- Enable
num-traits
crate featurei128
(needed for some targets)
0.3.3 - 2022-03-28
dactyl::NoHash
(forHashMap
,HashSet
)dactyl::traits::BytesToSigned
(slice to signed integer parsing)
0.3.2 - 2022-03-27
- impl
BytesToUnsigned
forNonZeroU*
0.3.1 - 2022-03-23
- Faster
NiceU*
parsing, particularly forNiceU8
andNiceU16
- Faster
NiceElapsed
parsing NiceElapsed::from(Duration)
andNiceElapsed::from(Instant)
now render fractional seconds (hundredths), e.g.5 minutes and 0.02 seconds
0.3.0 - 2022-03-15
dactyl::traits::BytesToUnsigned
(slice to unsigned integer parsing)From<Instant>
forNiceElapsed
dactyl::div_u128
dactyl::div_u16
dactyl::div_u32
dactyl::div_u64
dactyl::div_u8
dactyl::div_usize
GreaterThanZero
GtZero
0.2.4 - 2022-01-29
TryFrom<(T, T)>
forNicePercent
;
GreaterThanZero
GtZero
0.2.3 - 2022-01-20
NiceU*::with_separator
(exceptNiceU8
, which can't reach 1000)NiceU*::as_string
NiceU*::as_vec
0.2.2 - 2021-12-29
- Implement
Ord
/PartialOrd
forNiceU*
; - Only
Hash
filled bytes; - Implement
Hash
,Eq
,PartialEq
forNiceElapsed
;
0.2.1 - 2021-12-02
dactyl::div_u128
dactyl::div_u64
dactyl::div_u32
dactyl::div_u16
dactyl::div_u8
dactyl::div_usize
0.2.0 - 2021-10-21
- This changelog! Haha.
- Use Rust edition 2021.