serde-sibor

Crates.ioserde-sibor
lib.rsserde-sibor
version0.1.0
sourcesrc
created_at2023-12-18 12:04:17.146174
updated_at2023-12-18 12:04:17.146174
descriptionA serde implementation of the SIBOR binary format
homepage
repositoryhttps://github.com/mccolljr/serde-sibor
max_upload_size
id1073315
size37,596
Jacob McCollum (mccolljr)

documentation

README

serde-sibor

serde implementation for the SIBOR binary format.

What is SIBOR?

SIBOR is a binary format that is designed to be simple to implement, fast to encode and decode, and relatively compact. In order to achieve these goals, the number of features is kept to a minimum, and some types are not supported:

  • SIBOR is not self-describing. The schema must be known in advance.
  • SIBOR does not have a concept of "optional" fields. All fields must have a value.
  • SIBOR does not support maps. All maps must be encoded as sequences of key-value pairs.
  • SIBOR treats all signed integers, unsigned integers, and floats as 64-bit values.
  • SIBOR encodes all unsigned integers using a variable-length encoding.
  • SIBOR encodes all signed integers using a variable-length zigzag encoding.
  • SIBOR encodes all floats using a 64-bit IEEE 754 encoding. The bits are treated as a u64 and encoded using the variable-length encoding.

SIBOR is meant to be used when you want a quick and dirty way to serialize and deserialize binary data of a known schema. It does not have any built-in support for schema evolution, so such support must be implemented by the user.

Commit count: 13

cargo fmt