Skip to content
This repository was archived by the owner on Aug 2, 2020. It is now read-only.

Latest commit

 

History

10 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages