Skip to content

borsh-v1.0.0-alpha.5

Compare
Choose a tag to compare
@frol frol released this 26 Sep 19:53
· 40 commits to master since this release
d2c63ac

Added

  • [breaking] add DiscriminantValue to Definition::Enum::variants tuples (#232)
  • [breaking] add length_width to schema::Definition::Sequence (#229)
  • add definition of String/str (#226)
  • [breaking] add Definition::Sequence::length_range field (#220)
  • [breaking] add Definition::Primitive (#222)
  • max_size: various small refactoring (#223)
  • check Definition::Enum’s tag_width when validating schema (#224)
  • add (de)serialisation + schema for more core::ops::Range... types (full, open-ended, inclusive) (#213)
  • add BorshSchema implementation for core::num::NonZero... integers (#214)
  • [breaking] introduce borsh::io with either items of std:io or private borsh::nostd_io module reexported (std or no_std) (#212)
  • Introduce borsh::max_serialized_size function, borsh::schema::BorshSchemaContainer::for_type method (#209)

Other

  • [breaking] rename "Tuple<T0, T1, T2...>" -> "(T0, T1, T2...)" (schema::Declaration) (#234)
  • [breaking] rename "nil" -> "()", "string" -> "String", "nonzero_u16" -> "NonZeroU16" (schema::Declaration) (#233)
  • [breaking] rename "Array<T0, N>" -> "[T0; N]" (schema::Declaration) (#235)
  • [breaking] split ValidationError from MaxSizeError; validate and max_serialized_size made BorshSchemaContainer's methods (#219)
  • [breaking] declare and rename schema feature to be unstable__ (may break in 1.x versions)
  • Add Definition::Enum::tag_width field (#215)