Releases: Anders429/serde_assert
Releases · Anders429/serde_assert
v0.8.0
v0.7.1
v0.7.0
Added
Tokensnow implementsIntoIterator<Item = Token>.- The
tokenmodule is now public, containing bothToken(which is also exposed in the root module) andTokens. - Comparison with nested
Token::Unordereds is now allowed and correctly handled. token::IntoItertype for iterating over theTokensstruct.
Changed
Deserializer::build()now takes the tokens as a parameter. These tokens can now be any type that implementsIntoIterator<Item = Token>.Tokensis no longer exposed in the root module, instead being available attoken::Tokens.- The internals of
Tokensare no longer public.Tokenscan no longer be constructed by user code, and is now only returned by theSerializer. - Comparison with a
Tokenscan now be done with any type that implementsIntoIterator<Item = &Token>. de::Builder::build()now only requires&selfinstead of&mut self.Error::ExpectedTokenvariant has been replaced byError::ExpectedSeqEnd,Error::ExpectedTupleEnd,Error::ExpectedTupleStructEnd,Error::ExpectedTupleVariantEnd,Error::ExpectedMapEnd,Error::ExpectedStructEnd, andError::ExpectedStructVariantEndvariants.
Removed
From<Token>implementation forserde::de::Unexpected.PartialEqimplementation forToken.Displayimplementation forToken.- Dependency on
hashbrowncrate.
v0.6.0
v0.5.0
v0.4.0
v0.3.0
v0.2.0
Added
SerializeStructAsenumand accompanyingBuilder::serialize_struct_as()method for specifying whetherstructs should be serialized asserdestruct or sequence types.SerializeStructtype to provide a more specializedserde::SerializeStructimplementation.
Changed
Deserializer::deserialize_structcan now interpret bothStructandSeqTokens.
Removed
CompoundSerializerno longer implementsserde::SerializeStruct.