Skip to content
This repository has been archived by the owner on Aug 2, 2020. It is now read-only.
/ legacy Public archive

Legacy Serde shims

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

serde-deprecated/legacy

Repository files navigation

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.

About

Legacy Serde shims

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages