#binary-encoding #serialization #binary-format #binary-data #binary #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

#1584 in Asynchronous

Download history 39/week @ 2024-09-15 46/week @ 2024-09-22 68/week @ 2024-09-29 7/week @ 2024-10-06 12/week @ 2024-10-13 13/week @ 2024-10-20 13/week @ 2024-10-27 17/week @ 2024-11-03 1/week @ 2024-11-10 15/week @ 2024-11-17 32/week @ 2024-11-24 25/week @ 2024-12-01 76/week @ 2024-12-08 21/week @ 2024-12-15

99 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
~66K SLoC