Breaking changes
New
Bug fixes
Other
New
- Added
Str::try_copy_from_str
andStr::copy_from_str
to create a newStr<_>
by copying from a&str
. (#56)
Bug fixes
- Fixed an infinite loop in the
OctetsBuilder::with_capacity
impl forheapless::Vec<..>
. (#59)
Released 2024-02-13
New
- Added an impl of
SerialzeOctets
for plain, unsized[u8]
. (#54)
Released 2024-01-30.
Breaking changes
- Removed the impls of
Borrow<[u8]>
forStr<_>
andStrBuilder<_>
(Borrow<str>
is still there). (#52)
New
- Added an impl of
OctetsFrom<_>
forSmallvec<_>
. (#52) - Added an impl of
OctetsFrom<_>
forStr<_>
. (#51)
Released 2024-01-09
Breaking changes
- Update heapless dependency to 0.8. (#47 by @reitermarkus)
Released 2023-12-28.
Bug fixes
- Don’t enable bytes’
std
feature by default. (#45 by @reitermarkus)
Release 2023-11-16.
New
- Added
Parser::with_range
andParser::try_with_range
that allow creating a parser positioned and length-limited according to a given range. (#43)
Release 2023-10-18.
Breaking changes
- Change the lifetime of the range for a reference to the lifetime of the reference. (#41 by @xofyarg)
- Explicitly re-export select items at crate level rather than wildcard export everything. (#39)
New
- Adds a
BuilderAppendError<_>
type alias that simplifies trait bounds for complexFromBuilder
trait bounds. (#38)
Bug fixes
- Fix
Parser::peek_all
to only return data up until the parser's length rather than all data. (#40)
Released 2023-05-12.
Breaking Changes
- Drop the
OctetsRef
trait and introduce a newOctets
trait that takes over its purpose. This requires Rust 1.65.0. (#12) - Change the signature of
Octets::range
to use a range and drop all the convenience methods. (#13) - Split conversion from an octets builder to an immutable octets sequence
off of
OctetsBuilder
to the newFreezeBuilder
trait. (#25) - Dropped the
len
andis_empty
methods from theOctetsBuilder
trait. These can be requested viaAsRef<[u8]>
if necessary. ([#20]) - Rearranged module structure:
- broke up
traits
intooctets
andbuilder
, - renamed
types
toarray
, and - moved
SmallOctets
tooctets
. (#18)
- broke up
- The integer parsing methods on
Parser
have been renamed to make it clear they parse big-endian integers and new methods for parsing little-endian integers have been added. (#35) - The optional traits
SerializeOctets
andDeserializeOctets
have been redesigned for greater flexibility. (#21)
New
- Added
Parser::parse_parser
that allows parsing a given number of octets and return them as a cloned parser. (#10) - Add methods to
Parser
to parse 64 and 128 bit integers. (#11) - Added support for the
heapless
crate. (#19) - Added missing
Octets
implementation forArray<N>
. (#29) - Added
Octets
implementation forArc<[u8]>
. (#28) - Added blanket implementations for
OctetsBuilder
andTruncate
for mutable references of types that areOctetsBuilder
andTruncate
, respectively. (#30) - Added conversions from
&str
and&[u8]
toStr<[u8]>
. (#31) - Added
Array::resize_raw
. (#32, #33)
Released 2022-08-18.
Initial release.