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

#756 in Encoding

Download history 3005/week @ 2023-12-13 2307/week @ 2023-12-20 2000/week @ 2023-12-27 2480/week @ 2024-01-03 4041/week @ 2024-01-10 4373/week @ 2024-01-17 4195/week @ 2024-01-24 3753/week @ 2024-01-31 5027/week @ 2024-02-07 4670/week @ 2024-02-14 5090/week @ 2024-02-21 3918/week @ 2024-02-28 4435/week @ 2024-03-06 4502/week @ 2024-03-13 5804/week @ 2024-03-20 3647/week @ 2024-03-27

19,102 downloads per month
Used in 48 crates (6 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.5MB
~31K SLoC