Skip to content

Releases: near/borsh-rs

v0.10.1

08 Feb 19:24
83f91d6
Compare
Choose a tag to compare
  • Implemented (de)ser for core::ops::range
  • Introduce de::EnumExt trait with deserialize_variant method

Crate Links

v0.10.0

19 Jan 13:52
28bb5fd
Compare
Choose a tag to compare
  • Fix no-std feature (some of the imports incorrectly used std:: instead of crate::maybestd::)
  • Fix borsh-schema derives with for bounds
  • Implemented BorshSchema for HashSet
  • Add support for isize, usize types
  • Delete schema for char
  • Implement ser/de and schema for (T,)
  • Add clone impls to borsh schema types
  • Remove unnecessary trait bounds requirements for array
  • BREAKING CHANGE: BorshDeserialize now works by receiving an &mut std::io::Read
    instead of a &mut &[u8]. This is a breaking change for code that provides custom
    implementations of BorshDeserialize; there is no impact on code that uses only the
    derive macro.
  • Added BorshDeserialize::try_from_reader and BorshDeserialize::deserialize_reader.
  • Upgrade hashbrown version to be >=0.11,<0.14 to allow wider range of versions.

Crate Links

v0.9.3

04 Feb 15:58
eeb969c
Compare
Choose a tag to compare
  • Fix no_std compatibility.
  • Reduce code bloat in derived BorshSerialize impl for enums.

Crate Links

v0.9.2

26 Jan 10:30
d1edc1e
Compare
Choose a tag to compare
  • Upgrade hashbrown from 0.9 to 0.11. This can breakage in the rare case
    that you use borsh schema together with no-std support and rely on a specific
    version hashbrown of SchemaContainer. This is considered to be obscure
    enough to not warrant a semver bump.

Crate Links

v0.9.1

14 Jul 06:49
Compare
Choose a tag to compare
  • Eliminated unsafe code from both ser and de of u8 (#26)
  • Implemented ser/de for reference count types (#27)
  • Added serialization helpers to improve api ergonomics (#34)
  • Implemented schema for arrays and fix box bounds (#36)
  • Implemented (de)ser for PhantomData (#37)
  • Implemented const-generics under feature (#38)
  • Added an example of direct BorshSerialize::serialize usage with vector and slice buffers (#29)

v0.9.0

18 Mar 21:08
Compare
Choose a tag to compare
  • BREAKING CHANGE: is_u8 optimization helper is now unsafe since it may
    cause undefined behavior if it returns true for the type that is not safe
    to Copy (#21)
  • Extended the schema impls to support longer arrays to match the
    de/serialization impls (#22)

v0.8.2

04 Mar 22:55
Compare
Choose a tag to compare

Fixes:

  • Avoid collisions of imports due to derive-generated code (#14)

0.8.1

13 Jan 10:55
Compare
Choose a tag to compare

This is a patch release adding missing BTreeMap support after no_std refactoring as well as introducing support for BTreeSet, BinaryHeap, LinkedList, and VecDeque

0.8.0

13 Jan 10:53
Compare
Choose a tag to compare

Features

Introduced no_std support

Breaking changes

The binary format is the same and we expect the public API to be compatible as well