All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
Types of changes:
Added
for new featuresChanged
for changes in existing functionalityDeprecated
for soon-to-be removed featuresRemoved
for now removed featuresFixed
for any bug fixesSecurity
in case of vulnerabilities
- Impl
TryFrom<[u8]>
forStr
- Impl
borsh::{BorshSerialize, BorshDeserialize}
on most types
- Modules are now feature gated
- Types are no longer re-exported, must be accessed through modules
Float
andPercent
now useStr
internally, allowsconst
, fixed-size stack usage, andCopy
HeadTail
now requiresAsRef<str>
Str::invalid()
is nowconst
Str::as_str()
now panics in debug mode whenStr::invalid()
returnstrue
Str::from_bytes_exact()
takesimpl AsRef<[u8]>
instead of&[u8]
Str::capacity()
Int::try_from()
aNonZeroU*
#[must_use]
on applicable functionsStr::as_bytes_mut()
is nowunsafe
Str::from_bytes_exact()
is nowunsafe
Str::from_str_exact()
takesimpl AsRef<str>
instead of&str
- Redundant function constructors for
const
types (e.gUptime::day()
->Uptime::DAY
)
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
Deref
andAsRef
- impl
Add
andAddAssign
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
Time
type for clock time -11:59:59 PM
Military
type for military-style clock time -23:59:59
readable::time
free functions (unix()
,unix_clock()
,secs_to_hms()
, etc)readable::date
free functions (from_unix()
,as_unix()
, etc)SysUptime
,SysTime
,SysDate
traits for getting live-system info
- Uptime modules renamed for clarity
readable::time
->readable::up
- Time-like types from
readable::date
intotime
module
Nichi
type for calendar date formatting (Fri, Dec 25, 2020
)NichiFull
type for calendar date formatting (Friday, December 25th, 2020
)TimeUnit
type for remainder time measuring (61
==1 minute, 1 second
)From
impl forstd::time::Duration
from allreadable::time
andreadable::run
typesDefault
impl forStr
- Feature-flags (except for
serde
&bincode
)
Htop
type inreadable::time
forhtop
-style uptime formattingUptime
trait for getting system uptime and formatting directly into aTime
,TimeFull
orHtop
TryFrom
implementations from smart pointer strings (Arc<str>
,Box<str>
, etc) forStr
Str::from_str()
->Str::from_str_exact()
Str::from_bytes()
->Str::from_bytes_exact()
Time::UNKNOWN
changed from???
to(unknown)
TimeFull::UNKNOWN
changed from???
to(unknown)
First "public" release.