Crates.io | transmog-async |
lib.rs | transmog-async |
version | 0.1.1 |
source | src |
created_at | 2021-12-29 18:06:19.694508 |
updated_at | 2023-02-28 17:11:41.069032 |
description | Async stream support for Transmog |
homepage | |
repository | https://github.com/khonsulabs/transmog |
max_upload_size | |
id | 504959 |
size | 46,121 |
Asynchronous access to a Transmog-encoded item stream.
This crate enables you to asynchronously read from a Transmog-encoded stream, or write transmog-encoded values. Most serialization format do not natively support serializing and deserializing in an asynchronous environment.
Transmog works around that on the receive side by buffering received bytes
until a full element's worth of data has been received, and only then
calling into the underlying Format
. To make this work, it relies on the
sender to prefix each encoded element with its encoded size.
On the write side, Transmog buffers the serialized values, and asynchronously sends the resulting bytestream.
This crate has been adapted from
async-bincode
to generically
support the Format
trait.
This project, like all projects from Khonsu Labs, are open-source. This repository is available under the MIT License or the Apache License 2.0.
To learn more about contributing, please see CONTRIBUTING.md.