{"id":59783,"library":"tokio-macros","title":"Tokio Macros","description":"Proc macros for the Tokio async runtime.","status":"active","version":"2.7.0","language":"rust","source_language":null,"source_url":"https://github.com/tokio-rs/tokio","tags":["tokio","async","macros","proc-macros"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\ntokio-macros = \"2.7.0\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add tokio-macros","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"main","correct":"use tokio::main;"}],"quickstart":{"code":"use tokio::main;\n\n#[main]\nasync fn main() {\n    println!(\"Hello, Tokio!\");\n}","lang":"rust","description":"Entry point macro for Tokio async applications."},"warnings":[{"fix":"Add `tokio = { version = \"1\", features = [\"macros\"] }` to Cargo.toml.","message":"Requires the `macros` feature flag to be enabled.","severity":"gotcha","affected_versions":">=1.0.0"}],"env_vars":null,"search_vec":"'async':8,11 'macro':2,4,12,15 'proc':3,14 'proc-macro':13 'runtim':9 'tokio':1,7,10","created_at":"2026-06-16T17:16:43.804854+00:00","updated_at":"2026-06-16T17:16:43.804854+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-macros/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["async","other"],"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}}