#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

#1480 in Asynchronous

Download history 845/week @ 2024-01-05 341/week @ 2024-01-12 560/week @ 2024-01-19 621/week @ 2024-01-26 743/week @ 2024-02-02 1466/week @ 2024-02-09 1343/week @ 2024-02-16 844/week @ 2024-02-23 1475/week @ 2024-03-01 1558/week @ 2024-03-08 1446/week @ 2024-03-15 1404/week @ 2024-03-22 1399/week @ 2024-03-29 1188/week @ 2024-04-05 1851/week @ 2024-04-12 1127/week @ 2024-04-19

5,947 downloads per month
Used in 5 crates (3 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
~34K SLoC