Crates.io | destream_json |
lib.rs | destream_json |
version | 0.13.0 |
source | src |
created_at | 2021-01-18 17:50:39.14002 |
updated_at | 2024-08-13 22:47:53.502122 |
description | Library for decoding & encoding a JSON stream |
homepage | |
repository | https://github.com/haydnv/destream_json |
max_upload_size | |
id | 343602 |
size | 112,917 |
Rust library for encoding and decoding JSON streams
Example:
let expected = ("one".to_string(), 2.0, vec![3, 4]);
let stream = destream_json::encode(&expected).unwrap();
let actual = destream_json::try_decode((), stream).await;
assert_eq!(expected, actual);