#base64 #serde

hex-serde

Integration between hex and serde

1 unstable release

0.1.0 Jan 9, 2018

#24 in #base64

Download history 283/week @ 2019-12-10 175/week @ 2019-12-17 97/week @ 2019-12-24 170/week @ 2019-12-31 199/week @ 2020-01-07 32/week @ 2020-01-14 135/week @ 2020-01-21 57/week @ 2020-01-28 137/week @ 2020-02-04 47/week @ 2020-02-11 181/week @ 2020-02-18 123/week @ 2020-02-25 66/week @ 2020-03-03 73/week @ 2020-03-10 66/week @ 2020-03-17 52/week @ 2020-03-24

1,222 downloads per month
Used in 8 crates (6 directly)

MIT/Apache

4KB

hex-serde

Integration between hex and serde

Documentation


lib.rs:

Integration between hex and serde

Examples

# extern crate hex_serde;
# #[macro_use]
# extern crate serde;
# #[macro_use]
# extern crate serde_derive;
#[derive(Serialize, Deserialize)]
struct Sha256(#[serde(with = "hex_serde")] [u8; 32]);

#[derive(Serialize, Deserialize)]
struct MyStruct {
    #[serde(with = "hex_serde")] icecream: Vec<u8>,
    count: u64,
}
# fn main() {}

Dependencies

~200–315KB