{"id":58176,"library":"asynchronous-codec","title":"Asynchronous Codec","description":"Utilities for encoding and decoding frames using async/await, often used with tokio or async-std.","status":"active","version":"0.7.0","language":"rust","source_language":null,"source_url":"https://github.com/mxinden/asynchronous-codec","tags":["async","codec","framing","tokio","networking"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\nasynchronous-codec = \"0.7.0\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add asynchronous-codec","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"Framed","correct":"use asynchronous_codec::Framed;"}],"quickstart":{"code":"use asynchronous_codec::{Framed, LinesCodec};\nuse tokio::net::TcpStream;\n\nasync fn handle(stream: TcpStream) {\n    let mut framed = Framed::new(stream, LinesCodec {});\n    while let Some(Ok(line)) = framed.next().await {\n        println!(\"Received: {}\", line);\n    }\n}","lang":"rust","description":"Wraps a TcpStream with a line-based codec for async reading."},"warnings":[{"fix":"Add tokio or async-std as a dependency and run with an async executor.","message":"Requires an async runtime (e.g., tokio) to be used","severity":"gotcha","affected_versions":">= 0.7.0"}],"env_vars":null,"search_vec":"'async':17,19 'async-std':16 'async/await':10 'asynchron':1 'codec':2,20 'decod':7 'encod':5 'frame':8,21 'network':23 'often':11 'std':18 'tokio':14,22 'use':9,12 'util':3","created_at":"2026-06-16T16:14:07.458044+00:00","updated_at":"2026-06-16T16:14:07.458044+00:00","problems":[],"ecosystem":"crates","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/mxinden/asynchronous-codec","github":"https://github.com/mxinden/asynchronous-codec","docs":"https://docs.rs/asynchronous-codec/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["networking","async"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-16","next_check":"2026-12-13","install_tag":null}}