#future #async-io #adaptor #stream-sink #async-write

async-codec-lite

Adaptors from AsyncRead/AsyncWrite to Stream/Sink using futures

3 releases

0.0.2 May 24, 2022
0.0.1 Feb 8, 2022
0.0.0 Jan 20, 2021

#1577 in Asynchronous

Download history 1068/week @ 2023-11-27 396/week @ 2023-12-04 616/week @ 2023-12-11 595/week @ 2023-12-18 131/week @ 2023-12-25 583/week @ 2024-01-01 733/week @ 2024-01-08 369/week @ 2024-01-15 552/week @ 2024-01-22 662/week @ 2024-01-29 1176/week @ 2024-02-05 1064/week @ 2024-02-12 1316/week @ 2024-02-19 1146/week @ 2024-02-26 1221/week @ 2024-03-04 515/week @ 2024-03-11

4,227 downloads per month
Used in 4 crates (2 directly)

Apache-2.0 WITH LLVM-exception AND MIT

38KB
1K SLoC

async-codec-lite

Adaptors from AsyncRead/AsyncWrite to Stream/Sink using futures.

async-codec-lite

Adaptors from AsyncRead/AsyncWrite to Stream/Sink using futures.

Description

This crate is similar to existing crates that also provide FramedWrite adapters. The difference between this crate and other non-tokio alternatives is that it does not require T: Unpin in the Sink implementation for FramedWrite<T, E>. This unnecessarily strict requirement made using FramedWrite with tower-lsp problematic, as discussed in the issue here.

Acknowledgements

This crate is based on code and ideas from the following crates:

Dependencies

~0.7–1.6MB
~33K SLoC