From f771eea6e6481b6622165ee91c545518d8a35d69 Mon Sep 17 00:00:00 2001 From: Erick Tryzelaar Date: Sun, 6 Mar 2016 21:20:04 -0500 Subject: [PATCH] doc(readme): Document new 0.7 skip-serializing approach --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 2a72c2fe..680624f2 100644 --- a/README.md +++ b/README.md @@ -717,6 +717,12 @@ Field Annotations: | `#[serde(serialize_with="$path")` | Call a function `fn(&T, &mut S) -> Result<(), S::Error> where S: Serializer` to serialize this value | | `#[serde(deserialize_with="$path")` | Call a function `fn(&mut D) -> Result where D: Deserializer` to deserialize this value | +Upgrading from Serde 0.6 +======================== + +* `#[serde(skip_serializing_if_none)]` was replaced with `#[serde(skip_serializing_if="Option::is_none)]`. +* `#[serde(skip_serializing_if_empty)]` was replaced with `#[serde(skip_serializing_if="Vec::is_empty)]`. + Serialization Formats Using Serde =================================