Skip to content

v1.0.83

Compare
Choose a tag to compare
@dtolnay dtolnay released this 28 Dec 01:01
· 1265 commits to master since this release
v1.0.83
b1b9702
  • Support a rename_all specification that applies only to the Serialize impl or only to the Deserialize impl (#1447, thanks @vincascm)

    #[derive(Serialize, Deserialize)]
    #[serde(rename_all(
        serialize = "camelCase",
        deserialize = "SCREAMING_SNAKE_CASE",
    ))]
    struct S { /* ... */ }
  • Allow serializing struct name inside of structs with named fields (#1448, thanks @motu42)

    #[derive(Serialize)]
    #[serde(tag = "type")]
    struct S { /* ... */ }  // serializes as {"type":"S",...}