{"id":64954,"library":"tk-listen","title":"Tk Listen","description":"Helper futures for listening on TCP or Unix sockets with resource limits and error handling.","status":"active","version":"0.2.1","language":"rust","source_language":null,"source_url":"https://github.com/tailhook/tk-listen","tags":["tcp","unix","listener","async","tokio"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\ntk-listen = \"0.2.1\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add tk-listen","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"ListenExt","correct":"use tk_listen::ListenExt;"}],"quickstart":{"code":"use tk_listen::ListenExt;\nuse tokio::net::TcpListener;\n\n#[tokio::main]\nasync fn main() {\n    let listener = TcpListener::bind(\"127.0.0.1:8080\").await.unwrap();\n    let mut incoming = listener.incoming().log_errors().backpressure(100);\n    while let Some(stream) = incoming.next().await {\n        // handle connection\n    }\n}","lang":"rust","description":"Listen with error logging and backpressure."},"warnings":[{"fix":"Add tokio as a dependency and use #[tokio::main] or similar runtime.","message":"Requires Tokio runtime","severity":"gotcha","affected_versions":">=0.2.0"}],"env_vars":null,"search_vec":"'async':21 'error':16 'futur':4 'handl':17 'helper':3 'limit':14 'listen':2,6,20 'resourc':13 'socket':11 'tcp':8,18 'tk':1 'tokio':22 'unix':10,19","created_at":"2026-06-17T17:02:32.626395+00:00","updated_at":"2026-06-17T17:02:32.626395+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":"http://github.com/tailhook/tk-listen","github":"https://github.com/tailhook/tk-listen","docs":"https://docs.rs/tk-listen/","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-17","next_check":"2026-12-14","install_tag":null}}