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 |
#1645 in Asynchronous
135 downloads per month
Used in 16 crates
(6 directly)
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