Open ashuralyk opened 4 days ago
sometimes we only use serde_molecule to do the serializing work, like deserialize with serde_json and serialize with moleulce then.
serde_molecule
serde_json
You can write it with following:
#[derive(Serialize)] struct StructWithDynVec { #[serde(serialize_with = "dynvec_serde::serialize")] pub v: Vec<Vec<u8>>, }
sometimes we only use
serde_molecule
to do the serializing work, like deserialize withserde_json
and serialize with moleulce then.