You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The serde support of this crate is just plain awesome. I use #[serde(with = "hex::serde")] all the time. However, I just ran into the situation where I want a Vec<Vec<u8>> to be encoded as a list of hex strings. This is a lot less straightforward to implement, sadly.
To make this more ergonomic, I suggest adding a serialization wrapper newtype that I may use instead of serde_with. I could then write something like Vec<HexBytes> or Vec<Hex<Vec<u8>>> and it would just work.
The text was updated successfully, but these errors were encountered:
The serde support of this crate is just plain awesome. I use
#[serde(with = "hex::serde")]
all the time. However, I just ran into the situation where I want aVec<Vec<u8>>
to be encoded as a list of hex strings. This is a lot less straightforward to implement, sadly.To make this more ergonomic, I suggest adding a serialization wrapper newtype that I may use instead of
serde_with
. I could then write something likeVec<HexBytes>
orVec<Hex<Vec<u8>>>
and it would just work.The text was updated successfully, but these errors were encountered: