tuple_key

Crates.iotuple_key
lib.rstuple_key
version0.11.0
sourcesrc
created_at2023-06-25 18:40:23.549409
updated_at2024-12-04 14:35:37.521554
descriptionA serialization format for lexicographically sorted tuples.
homepage
repositoryhttps://github.com/rescrv/blue
max_upload_size
id899744
size65,270
Robert Escriva (rescrv)

documentation

README

tuple_key

A serialization format for lexicographically sorted tuples. The keys have the property that any TypedTupleKey that implements lexicographically sorted Ord, PartialOrd traits in field declaration order will serialize to a valid byte string that sorts in the same way.

Status

Active development. This library has seen recent changes to match the types of keys supported by protobuf maps. Version 0.4 reset the serialization in backwards-incompatible ways.

Scope

This crate provides everything necessary to convert a struct to and from a tuple key.

Warts

  • The documentation is lacking.

Documentation

The latest documentation is always available at docs.rs.

Updating

  • 0.2.0 -> 0.3.0: Add schema support. Changed the encoding format in a backwards-incompatible way.
  • 0.1.1 -> 0.2.0: Added support for empty tuples in named structs. Backwards-compatible otherwise.
Commit count: 1605

cargo fmt