Skip to content

Releases: NLnetLabs/octseq

0.5.2

10 Oct 10:58
837ea25
Compare
Choose a tag to compare

New

  • Added Str::try_copy_from_str and Str::copy_from_str to create a new Str<_> by copying from a &str. (#56)

Bug fixes

  • Fixed an infinite loop in the OctetsBuilder::with_capacity impl for heapless::Vec<..>. (#59)

0.5.1

13 Feb 14:33
1290125
Compare
Choose a tag to compare

New

  • Added an impl of SerialzeOctets for plain, unsized [u8]. (#54)

0.5.0

30 Jan 13:32
c7334c2
Compare
Choose a tag to compare

Breaking changes

  • Removed the impls of Borrow<[u8]> for Str<_> and StrBuilder<_> (Borrow<str> is still there). (#52)

New

  • Added an impl of OctetsFrom<_> for Smallvec<_>. (#52)
  • Added an impl of OctetsFrom<_> for Str<_>. (#51)

0.4.0

10 Jan 10:46
330db82
Compare
Choose a tag to compare

Breaking changes

0.3.2

28 Dec 12:03
868c16b
Compare
Choose a tag to compare

Bug fixes

0.3.1

16 Nov 14:13
4f36917
Compare
Choose a tag to compare

New

  • Added Parser::with_range and Parser::try_with_range that allow creating a parser positioned and length-limited according to a given range. (#43)

0.3.0

18 Oct 08:42
97f2813
Compare
Choose a tag to compare

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 complex FromBuilder trait bounds. (#38)

Bug fixes

  • Fix Parser::peek_all to only return data up until the parser's length rather than all data. (#40)

0.2.0

12 May 12:50
657c7e8
Compare
Choose a tag to compare

Breaking Changes

  • Drop the OctetsRef trait and introduce a new Octets 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 new FreezeBuilder trait. (#25)
  • Dropped the len and is_empty methods from the OctetsBuilder trait. These can be requested via AsRef<[u8]> if necessary. ([#20])
  • Rearranged module structure:
    • broke up traits into octets and builder,
    • renamed types to array, and
    • moved SmallOctets to octets. (#18)
  • 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 and DeserializeOctets 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 for Array<N>. (#29)
  • Added Octets implementation for Arc<[u8]>. (#28)
  • Added blanket implementations for OctetsBuilder and Truncate for mutable references of types that are OctetsBuilder and Truncate, respectively. (#30)
  • Added conversions from &str and &[u8] to Str<[u8]>. (#31)
  • Added Array::resize_raw. (#32, #33)

0.1.0

18 Aug 11:30
b3ece55
Compare
Choose a tag to compare

Initial release.