| Crates.io | tbon |
| lib.rs | tbon |
| version | 0.7.0 |
| created_at | 2021-03-22 20:42:10.978163+00 |
| updated_at | 2025-02-17 04:22:34.375181+00 |
| description | TinyChain Binary Object Notation is a compact and versatile stream-friendly binary serialization format |
| homepage | |
| repository | https://github.com/haydnv/tbon |
| max_upload_size | |
| id | 372293 |
| size | 91,494 |
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);