Skip to content
This repository has been archived by the owner on Mar 25, 2024. It is now read-only.

0.3.0

Compare
Choose a tag to compare
@dtolnay dtolnay released this 07 Jul 04:01
· 891 commits to master since this release
0.3.0

Unit enum variants are now serialized as strings instead of maps (#16)

Consider the following enum:

enum E { V, W }

A map containing keys "v" and "w" and values E::V and E::W used to be serialized as:

v:
  V: []
w:
  W: []

Now it will be serialized as:

v: V
w: W

Deserialization supports both the old and the new format.

This aligns with the corresponding change in serde_json 0.8.0.