Skip to content

v0.16.0

Latest
Compare
Choose a tag to compare
@hinto-janai hinto-janai released this 26 Dec 21:39
· 3 commits to main since this release
42cee5c

Added

  • Impl TryFrom<[u8]> for Str
  • Impl borsh::{BorshSerialize, BorshDeserialize} on most types

Changed

  • Modules are now feature gated
  • Types are no longer re-exported, must be accessed through modules
  • Float and Percent now use Str internally, allows const, fixed-size stack usage, and Copy
  • HeadTail now requires AsRef<str>
  • Str::invalid() is now const
  • Str::as_str() now panics in debug mode when Str::invalid() returns true
  • Str::from_bytes_exact() takes impl AsRef<[u8]> instead of &[u8]

Removed

  • Str::capacity()

Fixed

  • Int::try_from() a NonZeroU*