#time

no-std serde09

Re-export of serde::*

1 unstable release

Uses old Rust 2015

0.9.0 May 6, 2017

#850 in #time

MIT/Apache

5KB

Legacy Serde shims

These shim crates allow a single crate to support impls for multiple versions of Serde at the same time.

extern crate serde08;
extern crate serde09;
extern crate serde1;

struct S;

impl serde08::Deserialize for S {
    fn deserialize<D>(deserializer: &mut D) -> Result<Self, D::Error>
        where D: serde08::Deserializer
    {
        unimplemented!()
    }
}

impl serde09::Deserialize for S {
    fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>
        where D: serde09::Deserializer
    {
        unimplemented!()
    }
}

impl<'de> serde1::Deserialize<'de> for S {
    fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>
        where D: serde1::Deserializer<'de>
    {
        unimplemented!()
    }
}

License

Licensed under either of Apache License, Version 2.0 or MIT license at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this crate by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~0.5–0.8MB
~18K SLoC