13 releases (breaking)
Uses new Rust 2024
| 0.11.0 | Dec 8, 2025 |
|---|---|
| 0.10.0 | Nov 27, 2025 |
| 0.9.0 | Oct 29, 2025 |
| 0.6.0 | Apr 4, 2025 |
| 0.1.0 | Mar 16, 2022 |
#241 in Encoding
56,321 downloads per month
Used in 115 crates
(9 directly)
72KB
1.5K
SLoC
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.
Dependencies
~0–400KB