Skip to content

A rust macro for implementing dummy implementations of the traits serde::Serialize and serde::Deserialize

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-Apache2.0
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

xemwebe/fake_serialize

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fake_serialize

A rust macro for implementing dummy implementations of the traits serde::Serialize and serde::Deserialize

Sometimes, you run in the problem to use some trait or function from an external crate, that is constraint to types that implement the traits serde::Serialize or/and serde::Deserialize, even if this is not an requirement for all use cases. Here, using a dummy implementation that just returns an error if serialize or deserialize is calls comes handy.

This crate provides a derive macro that just provides these dummy implementations, e.g.

use fake_serialize::{FakeSerialize,FakeDeserialize};

#[derive(FakeSerialize,FakeDeserialize)]
struct SomeStruct {
    ...
}

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

License: MIT OR Apache-2.0

About

A rust macro for implementing dummy implementations of the traits serde::Serialize and serde::Deserialize

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-Apache2.0
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages