2 unstable releases

0.2.0 Jul 5, 2021
0.1.0 Apr 4, 2021

#1227 in Encoding

Download history 189/week @ 2024-07-22 330/week @ 2024-07-29 452/week @ 2024-08-05 440/week @ 2024-08-12 311/week @ 2024-08-19 474/week @ 2024-08-26 333/week @ 2024-09-02 340/week @ 2024-09-09 207/week @ 2024-09-16 274/week @ 2024-09-23 375/week @ 2024-09-30 293/week @ 2024-10-07 291/week @ 2024-10-14 240/week @ 2024-10-21 188/week @ 2024-10-28 305/week @ 2024-11-04

1,035 downloads per month
Used in 24 crates (9 directly)

MIT license

5KB
87 lines

vectorize

Converts maps to vecs for serialization.

Usage:


#[derive(Deserialize, Serialize)]
struct MyStruct {
    ordinary_field: String,
    #[serde(with = "vectorize")]
    no_string_key_map: HashMap<(u8, bool, String), String>,
}

Dependencies

~100–335KB