Skip to content

Conversation

@ethanfrey
Copy link

No longer no_std. Designed rather to work with wasm - small code size and no floating point are the main goals.

  • Works with the standard lib, handles integer types, &str but also String and Vec now.
  • Error types also implement std::error::Error

One open bug that it doesn't parse enum structs - only enum string variants.
That will be another PR

fionawhim and others added 12 commits July 8, 2019 21:19
The derived Deserialize implementation expects to be able to generate
tuple structs from arrays, so this implements deserialize_tuple_struct
to delegate to deserialize_seq.

Also implements deserialize_ignored_any so that Deserializers can
ignore fields of objects that they don’t care about.

Includes some comments explaining why certain deserialize methods are
unimplemented (I chose to use comments rather than passing a string
to unreachable! so that the strings wouldn’t end up in the binary).

Also adds a "CustomError" enum so that errors generated from the
derive macro don’t cause a panic. (And includes a note that maybe we
could put a heapless String there.)
@ethanfrey ethanfrey merged commit ca98746 into master Oct 26, 2019
@ethanfrey ethanfrey deleted the use-std branch October 26, 2019 18:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants