Skip to content

serde 0.9.12

  • Add #[serde(into = "T")] to serialize using the implementation of Into<T> and #[serde(from = "T")] to deserialize using the implementation of From<T> (#817, thanks @jbaublitz)

    #[derive(Serialize, Deserialize)]
    #[serde(into = "u32", from = "u32")]
    struct Ipv4Addr {
        /* ... */
    }
    
  • Implement Deserialize for Box<CStr> on nightly (#811, thanks @jonhoo)

  • Implement Serialize and Deserialize for OsString and implement Serialize for OsStr (#824, thanks @alexcrichton)

  • Implement Serialize for Range (#813, thanks @rocallahan)