#base64 #serde

hex-serde

Integration between hex and serde

1 unstable release

Uses old Rust 2015

0.1.0 Jan 9, 2018

#41 in #base64

Download history 71/week @ 2021-10-01 69/week @ 2021-10-08 27/week @ 2021-10-15 35/week @ 2021-10-22 99/week @ 2021-10-29 63/week @ 2021-11-05 107/week @ 2021-11-12 70/week @ 2021-11-19 33/week @ 2021-11-26 50/week @ 2021-12-03 60/week @ 2021-12-10 52/week @ 2021-12-17 36/week @ 2021-12-24 42/week @ 2021-12-31 64/week @ 2022-01-07 37/week @ 2022-01-14

183 downloads per month
Used in 10 crates (7 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

~165–285KB

¾¢TZ