{"id":58170,"library":"async-compat","title":"Async Compat","description":"Compatibility adapter between Tokio and futures-based async runtimes.","status":"active","version":"0.2.5","language":"rust","source_language":null,"source_url":"https://github.com/smol-rs/async-compat","tags":["async","tokio","futures","compatibility"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\nasync-compat = \"0.2.5\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add async-compat","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"Compat","correct":"use async_compat::Compat;"}],"quickstart":{"code":"use async_compat::Compat;\nuse futures::executor::block_on;\n\nasync fn hello() {\n    println!(\"Hello from async\");\n}\n\nfn main() {\n    block_on(Compat::new(hello()));\n}","lang":"rust","description":"Wraps a future to run on a Tokio runtime from futures ecosystem."},"warnings":[{"fix":"Ensure a Tokio runtime is running before calling Compat::new.","message":"Requires Tokio runtime to be active when using Compat; otherwise panics.","severity":"gotcha","affected_versions":">=0.2.0"}],"env_vars":null,"search_vec":"'adapt':4 'async':1,11,13 'base':10 'compat':2,3,16 'futur':9,15 'futures-bas':8 'runtim':12 'tokio':6,14","created_at":"2026-06-16T16:13:33.008705+00:00","updated_at":"2026-06-16T16:13:33.008705+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/smol-rs/async-compat","github":"https://github.com/smol-rs/async-compat","docs":"https://docs.rs/async-compat/","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}}