storekey

Crates.iostorekey
lib.rsstorekey
version0.11.0
created_at2022-03-16 14:41:53.038063+00
updated_at2025-12-08 19:07:19.04185+00
descriptionLexicographic sort-order preserving binary encoding format for key-value stores
homepagehttps://github.com/surrealdb/storekey
repositoryhttps://github.com/surrealdb/storekey
max_upload_size
id551213
size110,238
Tobie Morgan Hitchcock (tobiemh)

documentation

README


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, MemoDB, IndxDB, SurrealKV, 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.

Commit count: 41

cargo fmt