{"id":57290,"library":"mio","title":"Mio","description":"Lightweight non-blocking I/O.","status":"active","version":"1.2.1","language":"rust","source_language":null,"source_url":"https://github.com/tokio-rs/mio","tags":["io","non-blocking","event-loop","networking","async"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\nmio = \"1.2.1\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add mio","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"Poll","correct":"use mio::Poll;"}],"quickstart":{"code":"use mio::{Poll, Events, Token};\nuse mio::net::TcpListener;\nuse std::net::SocketAddr;\n\nfn main() {\n    let addr: SocketAddr = \"127.0.0.1:8080\".parse().unwrap();\n    let listener = TcpListener::bind(addr).unwrap();\n    let mut poll = Poll::new().unwrap();\n    let mut events = Events::with_capacity(1024);\n    poll.registry().register(&mut listener, Token(0), mio::Interest::READABLE).unwrap();\n    println!(\"Listening on {}\", addr);\n}","lang":"rust","description":"Create a non-blocking TCP listener using Mio's event loop."},"warnings":[{"fix":"Use `poll.registry().register(...)` instead of `poll.register(...)`.","message":"Mio v1.x has breaking API changes from v0.x; notably `Registry` replaces `Poll::register`.","severity":"breaking","affected_versions":">=1.0.0"}],"env_vars":null,"search_vec":"'async':15 'block':5,10 'event':12 'event-loop':11 'i/o':6 'io':7 'lightweight':2 'loop':13 'mio':1 'network':14 'non':4,9 'non-block':3,8","created_at":"2026-06-16T15:36:26.257293+00:00","updated_at":"2026-06-16T15:36:26.257293+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/tokio-rs/mio","github":"https://github.com/tokio-rs/mio","docs":"https://docs.rs/mio/","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}}