Crates.io | async-io-typed |
lib.rs | async-io-typed |
version | 3.0.0 |
source | src |
created_at | 2022-12-30 19:59:37.620295 |
updated_at | 2023-01-29 20:16:08.931856 |
description | Adapts any AsyncRead or AsyncWrite type to send serde compatible types |
homepage | |
repository | https://github.com/Xaeroxe/async-io-typed |
max_upload_size | |
id | 748049 |
size | 87,065 |
Combines bincode
and futures
to
adapt any AsyncRead
or AsyncWrite
type into a channel for transmission of serde
compatible Rust types.
If you have an endpoint you need to communicate with and
Deserialize
and Serialize
traits.Then this crate might be useful to you!
If the endpoint is in the same process then you should not use this crate. You're better served by existing async mpsc channels.
Many crates provide async mpsc channels, including futures
and tokio
. Pick your favorite implementation. Additionally, if you're
trying to interface with a process that doesn't have Rust code, and can't adopt a Rust portion, this crate will hurt much more than
it will help. Consider using protobufs or JSON if Rust adoption is a blocker.
Details on the binary format used by this crate can be found in the binary format specification.