KokaKiwi / rust-hex

A basic crate to encode values to hexadecimal representation. Originally extracted from rustc-serialize.
https://crates.io/crates/hex
Apache License 2.0
203 stars 57 forks source link

Add serde feature #38

Closed aloucks closed 4 years ago

aloucks commented 4 years ago

Example

use serde::{Serialize, Deserialize};

#[derive(Serialize, Deserialize)]
struct Foo {
    #[serde(with = "hex")]
    bar: Vec<u8>,
}
KokaKiwi commented 4 years ago

Looks good, thanks for the contribution ^-^ Just fix the docs.rs stuff and it'll be good :)