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

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

#1467 in Asynchronous

Download history 2050/week @ 2024-07-24 2239/week @ 2024-07-31 2226/week @ 2024-08-07 2988/week @ 2024-08-14 2230/week @ 2024-08-21 1633/week @ 2024-08-28 2032/week @ 2024-09-04 1290/week @ 2024-09-11 1718/week @ 2024-09-18 2492/week @ 2024-09-25 1358/week @ 2024-10-02 1334/week @ 2024-10-09 2409/week @ 2024-10-16 2464/week @ 2024-10-23 1855/week @ 2024-10-30 1264/week @ 2024-11-06

8,230 downloads per month
Used in 8 crates (4 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.6–1.5MB
~31K SLoC