#base64 #serde

hex-serde

Integration between hex and serde

1 unstable release

0.1.0 Jan 9, 2018

#432 in Encoding

Download history 32/week @ 2019-11-08 112/week @ 2019-11-15 350/week @ 2019-11-22 467/week @ 2019-11-29 483/week @ 2019-12-06 220/week @ 2019-12-13 97/week @ 2019-12-20 162/week @ 2019-12-27 236/week @ 2020-01-03 53/week @ 2020-01-10 47/week @ 2020-01-17 145/week @ 2020-01-24 99/week @ 2020-01-31 85/week @ 2020-02-07 116/week @ 2020-02-14

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

~205–315KB