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

#639 in Encoding

Download history 4755/week @ 2024-07-23 4311/week @ 2024-07-30 5817/week @ 2024-08-06 5139/week @ 2024-08-13 5237/week @ 2024-08-20 4760/week @ 2024-08-27 5456/week @ 2024-09-03 5314/week @ 2024-09-10 5091/week @ 2024-09-17 4908/week @ 2024-09-24 5170/week @ 2024-10-01 3820/week @ 2024-10-08 5573/week @ 2024-10-15 5555/week @ 2024-10-22 4875/week @ 2024-10-29 4314/week @ 2024-11-05

21,004 downloads per month
Used in 75 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
~27K SLoC