Registry / networking / asynchronous-codec

asynchronous-codec

JSON →
library0.7.0rscratesunverified

Utilities for encoding and decoding frames using async/await, often used with tokio or async-std.

networkingasync
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

use asynchronous_codec::Framed;

Wraps a TcpStream with a line-based codec for async reading.

use asynchronous_codec::{Framed, LinesCodec}; use tokio::net::TcpStream; async fn handle(stream: TcpStream) { let mut framed = Framed::new(stream, LinesCodec {}); while let Some(Ok(line)) = framed.next().await { println!("Received: {}", line); } }
Debug
Known footguns
gotchaRequires an async runtime (e.g., tokio) to be used
Upgrade
Version history

Breaking-change detection hasn't run for this library yet.

Audit
Security & dependencies

CVE tracking and dependency tree are planned for a later release.

Agent activity
29 hits · last 30 days
gptbot
3
amazonbot
3
bytedance
3
claudebot
3
bingbot
2
mj12bot
1
ahrefsbot
1
Resources