#binary-encoding #serialization #binary-format #binary #binary-data #deserialize #stream

tbon

TinyChain Binary Object Notation is a compact and versatile stream-friendly binary serialization format

18 releases

0.6.0 Aug 13, 2024
0.5.2 Dec 20, 2023
0.5.1 Sep 3, 2023
0.5.0 Jul 3, 2023
0.1.3 Mar 23, 2021

#1544 in Asynchronous

Download history 37/week @ 2024-07-19 153/week @ 2024-07-26 35/week @ 2024-08-02 178/week @ 2024-08-09 49/week @ 2024-08-16 33/week @ 2024-08-23 57/week @ 2024-08-30 18/week @ 2024-09-06 36/week @ 2024-09-13 53/week @ 2024-09-20 58/week @ 2024-09-27 20/week @ 2024-10-04 12/week @ 2024-10-11 12/week @ 2024-10-18 9/week @ 2024-10-25 22/week @ 2024-11-01

56 downloads per month
Used in 16 crates (6 directly)

Apache-2.0

65KB
2K SLoC

Tinychain Binary Object Notation

Tinychain Binary Object Notation (TBON) is a compact and versatile stream-friendly binary serialization format.

Example:

let expected = ("one".to_string(), 2.0, vec![3, 4], Bytes::from(vec![5u8]));
let stream = tbon::en::encode(&expected).unwrap();
let actual = tbon::de::try_decode((), stream).await.unwrap();
assert_eq!(expected, actual);

lib.rs:

Library for encoding Rust program data into a binary stream, and decoding that stream.

Example:

let expected = ("one".to_string(), 2.0, vec![3, 4], vec![5u8]);
let stream = tbon::en::encode(&expected).unwrap();
let actual = block_on(tbon::de::try_decode((), stream)).unwrap();
assert_eq!(expected, actual);

Dependencies

~1.6–8MB
~65K SLoC