{"id":57888,"library":"tokio-executor","title":"Tokio Executor","description":"Future execution primitives.","status":"active","version":"0.1.10","language":"rust","source_language":null,"source_url":"https://github.com/tokio-rs/tokio","tags":["tokio","executor","future","async","deprecated"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\ntokio-executor = \"0.1.10\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add tokio-executor","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"Executor","correct":"use tokio_executor::Executor;"}],"quickstart":{"code":"use tokio_executor::Executor;\nuse futures::future::lazy;\n\nfn main() {\n    let mut executor = tokio_executor::current_thread::CurrentThread::new();\n    executor.spawn(lazy(|| {\n        println!(\"Hello from executor\");\n        Ok(())\n    }));\n    executor.run().unwrap();\n}","lang":"rust","description":"Spawn and run futures on a current-thread executor."},"warnings":[{"fix":"Use `tokio::runtime::Runtime` or `tokio::task` instead.","message":"This crate is part of Tokio 0.1 and is deprecated in favor of `tokio::runtime` in Tokio 0.2+.","severity":"breaking","affected_versions":">=0.2.0"}],"env_vars":null,"search_vec":"'async':9 'deprec':10 'execut':4 'executor':2,7 'futur':3,8 'primit':5 'tokio':1,6","created_at":"2026-06-16T16:03:35.449547+00:00","updated_at":"2026-06-16T16:03:35.449547+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/tokio","github":"https://github.com/tokio-rs/tokio","docs":"https://docs.rs/tokio-executor/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["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}}