cargo serde_derive 1.0.83

latest releases: 1.0.144, 1.0.143, 1.0.142...
5 years ago
  • 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",...}

Don't miss a new serde_derive release

NewReleases is sending notifications on new releases.