6 releases (breaking)

0.5.0 Apr 28, 2023
0.4.1 Mar 26, 2023
0.4.0 Jan 14, 2023
0.3.0 Jun 25, 2022
0.1.0 Mar 16, 2022

#1978 in Encoding

Download history 5191/week @ 2024-10-14 5625/week @ 2024-10-21 4847/week @ 2024-10-28 4648/week @ 2024-11-04 5934/week @ 2024-11-11 6652/week @ 2024-11-18 7993/week @ 2024-11-25 7574/week @ 2024-12-02 7516/week @ 2024-12-09 7110/week @ 2024-12-16 3760/week @ 2024-12-23 4196/week @ 2024-12-30 7209/week @ 2025-01-06 7889/week @ 2025-01-13 7947/week @ 2025-01-20 5564/week @ 2025-01-27

29,256 downloads per month
Used in 79 crates (8 directly)

Apache-2.0

41KB
1K SLoC


Storekey Logo Storekey Logo

Binary encoding for Rust values which ensures lexicographic sort ordering. Order-preserving encoding is useful for creating keys for sorted key-value stores with byte string typed keys, such as EchoDB, YokuDB, IndxDB, TiKV, and SurrealDB.


     

Features

  • Binary encoding whilst preserving lexicographic sort order
  • Useful for creating keys for sorted key-value data stores
  • Aims to encode values into the fewest number of bytes possible
  • The exact type of a serialized value must be known in order to deserialize it
  • Supports all Rust primitives, strings, options, structs, enums, vecs, and tuples

Original

This code is forked originally from bytekey-fix, which is originally forked from bytekey, both licensed under the Apache License 2.0 license. See LICENSE for full license text.

Dependencies

~0.5–1.3MB
~26K SLoC