#map #deserialize #vec #scylla #serde

serde_map

Map based on Vec for serialization purposes

2 unstable releases

new 0.2.0 Mar 11, 2025
0.1.0 Mar 3, 2025

#720 in Data structures

Download history 135/week @ 2025-02-27 107/week @ 2025-03-06

242 downloads per month

MIT/Apache

24KB
357 lines

Rust Map based on Vec for serialization purposes

Crate API

Made mainly for deserialization speedup, because deserializing to an actual HashMap is a lot slower. It also saves the original order of the data.

Usage examples: to deserialize and then .into_iter(); or to transfer data between different storages.

Also it has a trait SerdeMapStrategy, which helps to process data (currently only keys) at the serializing/deserializing stage, before saving to the inner Vec (example in docs).

Dependencies

~0.1–12MB
~137K SLoC