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

#864 in Encoding

Download history 3220/week @ 2024-01-06 4466/week @ 2024-01-13 4310/week @ 2024-01-20 4048/week @ 2024-01-27 3593/week @ 2024-02-03 5060/week @ 2024-02-10 5682/week @ 2024-02-17 4201/week @ 2024-02-24 3915/week @ 2024-03-02 4377/week @ 2024-03-09 5188/week @ 2024-03-16 5449/week @ 2024-03-23 4419/week @ 2024-03-30 5320/week @ 2024-04-06 5224/week @ 2024-04-13 4036/week @ 2024-04-20

19,449 downloads per month
Used in 51 crates (7 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