Skip to content

1.0.0

Latest
Compare
Choose a tag to compare
@maciejhirsz maciejhirsz released this 07 Aug 18:44
· 19 commits to master since this release

New stuff

  • [new spec] size has a new format, can now grow up to 64 bits of length.
  • [new spec] Added uint64 and int64 types.
  • Performance upgrades.

Breaking changes:

  • Due to changes to size spec, this version is only interoperable with other 1.0+ implementations.
  • Decoder now accepts a &[u8] instead of consuming a Vec<u8>.
  • Encoder::end now returns a Vec<u8> instead of Result<Vec<u8>, Error>.
  • Decoder::bytes now returns a Result<&[u8], Error> instead of Result<Vec<u8>, Error>.
  • Decoder::string now returns a Result<&str, Error> instead of Result<String, Error>.

The changes to bytes / string now allow use string / byte slices to compare values without the need to allocate data on the heap.