Releases: hinto-janai/readable
Releases · hinto-janai/readable
v0.16.0
Added
- Impl
TryFrom<[u8]>forStr - Impl
borsh::{BorshSerialize, BorshDeserialize}on most types
Changed
- Modules are now feature gated
- Types are no longer re-exported, must be accessed through modules
FloatandPercentnow useStrinternally, allowsconst, fixed-size stack usage, andCopyHeadTailnow requiresAsRef<str>Str::invalid()is nowconstStr::as_str()now panics in debug mode whenStr::invalid()returnstrueStr::from_bytes_exact()takesimpl AsRef<[u8]>instead of&[u8]
Removed
Str::capacity()
Fixed
Int::try_from()aNonZeroU*
v0.15.0
Changed
#[must_use]on applicable functionsStr::as_bytes_mut()is nowunsafeStr::from_bytes_exact()is nowunsafeStr::from_str_exact()takesimpl AsRef<str>instead of&str
Removed
- Redundant function constructors for
consttypes (e.gUptime::day()->Uptime::DAY)
v0.14.0
Added
readable::date::*:- impl
TryFrom<(u16, u8, u8)> - impl
TryFrom<(u16, u8)> - impl
TryFrom<u16>
- impl
readable::str::Str:- impl
std::fmt::Write - impl
Index - impl
Extend<char>,Extend<&str> - impl
DerefandAsRef - impl
AddandAddAssign push_{str,char}_unchecked()->push_{str,char}_panic()- add
push_char_*()variants - add
push_str_saturating() - add
remove() - add
pop() - add
truncate() - add
make_ascii_uppercase(),make_ascii_lowercase() - add
as_bytes_mut(),as_mut_ptr(),as_str_mut()
- impl
v0.13.0
Added
Timetype for clock time -11:59:59 PMMilitarytype for military-style clock time -23:59:59readable::timefree functions (unix(),unix_clock(),secs_to_hms(), etc)readable::datefree functions (from_unix(),as_unix(), etc)SysUptime,SysTime,SysDatetraits for getting live-system info
Changed
- Uptime modules renamed for clarity
readable::time->readable::up - Time-like types from
readable::dateintotimemodule
v0.12.0
Added
Nichitype for calendar date formatting (Fri, Dec 25, 2020)NichiFulltype for calendar date formatting (Friday, December 25th, 2020)TimeUnittype for remainder time measuring (61==1 minute, 1 second)Fromimpl forstd::time::Durationfrom allreadable::timeandreadable::runtypesDefaultimpl forStr
Removed
- Feature-flags (except for
serde&bincode)
v0.11.0
Added
Htoptype inreadable::timeforhtop-style uptime formattingUptimetrait for getting system uptime and formatting directly into aTime,TimeFullorHtopTryFromimplementations from smart pointer strings (Arc<str>,Box<str>, etc) forStr
Changed
Str::from_str()->Str::from_str_exact()Str::from_bytes()->Str::from_bytes_exact()Time::UNKNOWNchanged from???to(unknown)TimeFull::UNKNOWNchanged from???to(unknown)
v0.10.0
First "public" release.