{"id":57083,"library":"tokio","title":"Tokio","description":"An event-driven, non-blocking I/O platform for writing asynchronous I/O backed applications.","status":"active","version":"1.52.3","language":"rust","source_language":null,"source_url":"https://github.com/tokio-rs/tokio","tags":["async","io","runtime","networking","event-driven"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\ntokio = \"1.52.3\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add tokio","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"Runtime","correct":"use tokio::runtime::Runtime;"}],"quickstart":{"code":"use tokio::runtime::Runtime;\n\nfn main() {\n    let rt = Runtime::new().unwrap();\n    rt.block_on(async {\n        println!(\"Hello from Tokio!\");\n    });\n}","lang":"rust","description":"Creates a Tokio runtime and runs an async block."},"warnings":[{"fix":"Add `tokio = { version = \"1\", features = [\"rt-multi-thread\"] }` to Cargo.toml if you disable default features.","message":"Tokio requires the `rt` or `rt-multi-thread` feature for the runtime (enabled by default).","severity":"gotcha","affected_versions":">=1.0.0"},{"fix":"Ensure `macros` feature is enabled or use `#[tokio::main]` only with default features.","message":"Using `tokio::main` macro requires the `macros` feature (enabled by default).","severity":"gotcha","affected_versions":">=1.0.0"}],"env_vars":null,"search_vec":"'applic':16 'async':17 'asynchron':13 'back':15 'block':8 'driven':5,23 'event':4,22 'event-driven':3,21 'i/o':9,14 'io':18 'network':20 'non':7 'non-block':6 'platform':10 'runtim':19 'tokio':1 'write':12","created_at":"2026-06-16T15:27:39.825898+00:00","updated_at":"2026-06-16T15:27:39.825898+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://tokio.rs","github":"https://github.com/tokio-rs/tokio","docs":"https://docs.rs/tokio/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["async","networking"],"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}}