This simply provides a manual implementation of Serialize that correctly round-trips with the already-existing Deserialize implementation.
I also provided tests for both the failing round-trip (the test fails before the fix, and passes after), as well as a few other serde-related tests. With those tests I added dev-dependencies on both serde_assert (for testing the serde implementations) and claims (for making assertions with Result types much more ergonomic).
Fixes #26.
This simply provides a manual implementation of
Serialize
that correctly round-trips with the already-existingDeserialize
implementation.I also provided tests for both the failing round-trip (the test fails before the fix, and passes after), as well as a few other
serde
-related tests. With those tests I addeddev-dependencies
on bothserde_assert
(for testing the serde implementations) andclaims
(for making assertions withResult
types much more ergonomic).Note that this is a breaking change.