octseq
Abstractions for types representing octet sequences.
0.6.1
11M downloads/mo
#2934 most downloaded on crates.io
NLnetLabs/octets
What this package is like to depend on
Last release 4 months ago
24 Apr 2026
Release timing varies
gaps range from 2 weeks to 1.5 years
Nearly every release is documented
notes for 11 of 11 stable releases
Nothing withdrawn
no release was ever pulled
4 years old
11 releases · first in 2022
2 releases in the last 12 months
see the full history below
Release timeline
11 releases · Aug 2022 to Apr 2026Releases
latest 11-
0.6.124 Apr 2026Release notes
Open source →Improvements
- Introduced a new feature
allocthat only uses theallocmodule of the standard library. The existingstdfeature impliesallocand is still the default. (#68)
Release notes
Open source →Released 2026-04-24.
Improvements
- Introduced a new feature
allocthat only uses theallocmodule of the standard library. The existingstdfeature impliesallocand is still the default. (#68)
- Introduced a new feature
-
0.6.020 Apr 2026Release notes
Open source → -
0.5.210 Oct 2024Release notes
Open source →New
- Added
Str::try_copy_from_strandStr::copy_from_strto create a newStr<_>by copying from a&str. (#56)
Bug fixes
- Fixed an infinite loop in the
OctetsBuilder::with_capacityimpl forheapless::Vec<..>. (#59)
Release notes
Open source →New
- Added
Str::try_copy_from_strandStr::copy_from_strto create a newStr<_>by copying from a&str. (#56)
Bug fixes
- Fixed an infinite loop in the
OctetsBuilder::with_capacityimpl forheapless::Vec<..>. (#59)
- Added
-
0.5.113 Feb 2024Release notes
Open source → -
0.5.030 Jan 2024Release notes
Open source →Breaking changes
- Removed the impls of
Borrow<[u8]>forStr<_>andStrBuilder<_>(Borrow<str>is still there). (#52)
New
Release notes
Open source →Released 2024-01-30.
Breaking changes
- Removed the impls of
Borrow<[u8]>forStr<_>andStrBuilder<_>(Borrow<str>is still there). (#52)
New
- Removed the impls of
-
0.4.010 Jan 2024Release notes
Open source →Breaking changes
- Update heapless dependency to 0.8. (#47 by @reitermarkus)
Release notes
Open source → -
0.3.228 Dec 2023Release notes
Open source →Bug fixes
- Don’t enable bytes’
stdfeature by default. (#45 by @reitermarkus)
Release notes
Open source → - Don’t enable bytes’
-
0.3.116 Nov 2023Release notes
Open source →New
- Added
Parser::with_rangeandParser::try_with_rangethat allow creating a parser positioned and length-limited according to a given range. (#43)
Release notes
Open source →Release 2023-11-16.
New
- Added
Parser::with_rangeandParser::try_with_rangethat allow creating a parser positioned and length-limited according to a given range. (#43)
- Added
-
0.3.018 Oct 2023Release notes
Open source →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 complexFromBuildertrait bounds. (#38)
Bug fixes
- Fix
Parser::peek_allto only return data up until the parser's length rather than all data. (#40)
Release notes
Open source →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 complexFromBuildertrait bounds. (#38)
Bug fixes
- Fix
Parser::peek_allto only return data up until the parser's length rather than all data. (#40)
-
0.2.012 May 2023Release notes
Open source →Breaking Changes
- Drop the
OctetsReftrait and introduce a newOctetstrait that takes over its purpose. This requires Rust 1.65.0. (#12) - Change the signature of
Octets::rangeto use a range and drop all the convenience methods. (#13) - Split conversion from an octets builder to an immutable octets sequence off of
OctetsBuilderto the newFreezeBuildertrait. (#25) - Dropped the
lenandis_emptymethods from theOctetsBuildertrait. These can be requested viaAsRef<[u8]>if necessary. ([#20]) - Rearranged module structure:
- broke up
traitsintooctetsandbuilder, - renamed
typestoarray, and - moved
SmallOctetstooctets. (#18)
- broke up
- The integer parsing methods on
Parserhave 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
SerializeOctetsandDeserializeOctetshave been redesigned for greater flexibility. (#21)
New
- Added
Parser::parse_parserthat allows parsing a given number of octets and return them as a cloned parser. (#10) - Add methods to
Parserto parse 64 and 128 bit integers. (#11) - Added support for the
heaplesscrate. (#19) - Added missing
Octetsimplementation forArray<N>. (#29) - Added
Octetsimplementation forArc<[u8]>. (#28) - Added blanket implementations for
OctetsBuilderandTruncatefor mutable references of types that areOctetsBuilderandTruncate, respectively. (#30) - Added conversions from
&strand&[u8]toStr<[u8]>. (#31) - Added
Array::resize_raw. (#32, #33)
Release notes
Open source →Released 2023-05-12.
Breaking Changes
- Drop the
OctetsReftrait and introduce a newOctetstrait that takes over its purpose. This requires Rust 1.65.0. (#12) - Change the signature of
Octets::rangeto use a range and drop all the convenience methods. (#13) - Split conversion from an octets builder to an immutable octets sequence
off of
OctetsBuilderto the newFreezeBuildertrait. (#25) - Dropped the
lenandis_emptymethods from theOctetsBuildertrait. These can be requested viaAsRef<[u8]>if necessary. ([#20]) - Rearranged module structure:
- broke up
traitsintooctetsandbuilder, - renamed
typestoarray, and - moved
SmallOctetstooctets. (#18)
- broke up
- The integer parsing methods on
Parserhave 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
SerializeOctetsandDeserializeOctetshave been redesigned for greater flexibility. (#21)
New
- Added
Parser::parse_parserthat allows parsing a given number of octets and return them as a cloned parser. (#10) - Add methods to
Parserto parse 64 and 128 bit integers. (#11) - Added support for the
heaplesscrate. (#19) - Added missing
Octetsimplementation forArray<N>. (#29) - Added
Octetsimplementation forArc<[u8]>. (#28) - Added blanket implementations for
OctetsBuilderandTruncatefor mutable references of types that areOctetsBuilderandTruncate, respectively. (#30) - Added conversions from
&strand&[u8]toStr<[u8]>. (#31) - Added
Array::resize_raw. (#32, #33)
- Drop the
-
0.1.018 Aug 2022