#shim #serde #mime

mime_serde_shim

Community Driven Serde Shims

3 releases

Uses old Rust 2015

0.2.2 Nov 23, 2018
0.2.1 Nov 22, 2018
0.2.0 Nov 22, 2018

#1760 in Encoding

Download history 543/week @ 2023-12-18 641/week @ 2023-12-25 781/week @ 2024-01-01 253/week @ 2024-01-08 384/week @ 2024-01-15 553/week @ 2024-01-22 559/week @ 2024-01-29 763/week @ 2024-02-05 397/week @ 2024-02-12 364/week @ 2024-02-19 396/week @ 2024-02-26 450/week @ 2024-03-04 507/week @ 2024-03-11 612/week @ 2024-03-18 249/week @ 2024-03-25 370/week @ 2024-04-01

1,778 downloads per month
Used in 8 crates (3 directly)

MIT license

7KB
126 lines

serde_shims Build Status

Community Driven Serde Shims

Documentation

Many crates prefer to avoid natively providing Serde integration on the basis it could be unstable in the future, be annoying to maintain, or stifles innovation if there is ever a Serde competitor in the Rust serialization world.

However, keeping track of dozens or hundreds of lines of custom shim functions in my own projects has proven to be as much or more frustrating than if I were to add that functionality to those crates directly. The innability to share code between binaries or libraries is especially painful.

So, as a compromise, I present this crate as a way to provide serialize_with/deserialize_with functions or implementation macros for crates without native Serde implementations.

To enable these shims, simply add the crate to your Cargo.toml:

[dependencies]
bitflags_serde_shim = "0.2"
enum_primitive_serde_shim = "0.2"
mime_serde_shim = "0.2"
std_serde_shims = "0.2"

or as a legacy feature-based import with the meta crate:

[dependencies]
serde_shims = { version = "0.2", features = ["std", "mime"] }

If there is a crate you'd like to have a Serde shim for, or would like to contribute your own, feel free to open an issue or pull request!

Dependencies

~140–385KB