borsh-v1.0.0-alpha.5
frol
released this
26 Sep 19:53
·
40 commits
to master
since this release
Added
- [breaking] add
DiscriminantValue
toDefinition::Enum::variants
tuples (#232) - [breaking] add
length_width
toschema::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
’stag_width
when validating schema (#224) - add (de)serialisation + schema for more
core::ops::Range...
types (full, open-ended, inclusive) (#213) - add
BorshSchema
implementation forcore::num::NonZero...
integers (#214) - [breaking] introduce
borsh::io
with either items ofstd:io
or privateborsh::nostd_io
module reexported (std
orno_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
fromMaxSizeError
;validate
andmax_serialized_size
madeBorshSchemaContainer
'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)