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

#749 in Encoding

Download history 5295/week @ 2024-08-16 5067/week @ 2024-08-23 5282/week @ 2024-08-30 5161/week @ 2024-09-06 5111/week @ 2024-09-13 5369/week @ 2024-09-20 4604/week @ 2024-09-27 4657/week @ 2024-10-04 4456/week @ 2024-10-11 5923/week @ 2024-10-18 4891/week @ 2024-10-25 4995/week @ 2024-11-01 5081/week @ 2024-11-08 6918/week @ 2024-11-15 7708/week @ 2024-11-22 6504/week @ 2024-11-29

27,049 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
~27K SLoC