2 unstable releases

0.2.0 Jul 5, 2021
0.1.0 Apr 4, 2021

#1219 in Encoding

Download history 259/week @ 2024-05-18 357/week @ 2024-05-25 246/week @ 2024-06-01 210/week @ 2024-06-08 353/week @ 2024-06-15 305/week @ 2024-06-22 160/week @ 2024-06-29 210/week @ 2024-07-06 335/week @ 2024-07-13 199/week @ 2024-07-20 340/week @ 2024-07-27 455/week @ 2024-08-03 422/week @ 2024-08-10 339/week @ 2024-08-17 360/week @ 2024-08-24 441/week @ 2024-08-31

1,653 downloads per month
Used in 25 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

~110–345KB