#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

#1246 in Asynchronous

Download history 2546/week @ 2024-11-17 1875/week @ 2024-11-24 3588/week @ 2024-12-01 3875/week @ 2024-12-08 2486/week @ 2024-12-15 337/week @ 2024-12-22 1174/week @ 2024-12-29 3408/week @ 2025-01-05 3076/week @ 2025-01-12 1861/week @ 2025-01-19 3424/week @ 2025-01-26 5112/week @ 2025-02-02 3334/week @ 2025-02-09 3503/week @ 2025-02-16 5826/week @ 2025-02-23 6521/week @ 2025-03-02

19,286 downloads per month
Used in 9 crates (5 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
~30K SLoC