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

#1300 in Encoding

Download history 4938/week @ 2024-03-14 5529/week @ 2024-03-21 4390/week @ 2024-03-28 5245/week @ 2024-04-04 5258/week @ 2024-04-11 4598/week @ 2024-04-18 5163/week @ 2024-04-25 6104/week @ 2024-05-02 4959/week @ 2024-05-09 4413/week @ 2024-05-16 4908/week @ 2024-05-23 4866/week @ 2024-05-30 4375/week @ 2024-06-06 5133/week @ 2024-06-13 4266/week @ 2024-06-20 3229/week @ 2024-06-27

17,888 downloads per month
Used in 58 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.7–1.4MB
~30K SLoC