| Crates.io | destream_json |
| lib.rs | destream_json |
| version | 0.14.0 |
| created_at | 2021-01-18 17:50:39.14002+00 |
| updated_at | 2025-02-17 12:56:27.096264+00 |
| description | Library for decoding & encoding a JSON stream |
| homepage | |
| repository | https://github.com/haydnv/destream_json |
| max_upload_size | |
| id | 343602 |
| size | 132,305 |
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);