Crates.io | tbon |
lib.rs | tbon |
version | 0.6.0 |
source | src |
created_at | 2021-03-22 20:42:10.978163 |
updated_at | 2024-08-13 22:51:45.360521 |
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 | 75,899 |
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);