{"id":57227,"library":"wasm-bindgen-futures","title":"wasm-bindgen-futures","description":"Bridging the gap between Rust Futures and JavaScript Promises.","status":"active","version":"0.4.75","language":"rust","source_language":null,"source_url":"https://github.com/wasm-bindgen/wasm-bindgen","tags":["wasm","futures","promises","async"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\nwasm-bindgen-futures = \"0.4.75\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add wasm-bindgen-futures","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"JsFuture","correct":"use wasm_bindgen_futures::JsFuture;"}],"quickstart":{"code":"use wasm_bindgen::prelude::*;\nuse wasm_bindgen_futures::JsFuture;\n\n#[wasm_bindgen]\npub async fn fetch_url(url: String) -> Result<JsValue, JsValue> {\n    let resp = JsFuture::from(web_sys::window().unwrap().fetch_with_str(&url)).await?;\n    Ok(resp)\n}","lang":"rust","description":"Converts a JavaScript Promise into a Rust Future."},"warnings":[{"fix":"Ensure target is `wasm32-unknown-unknown` and add `wasm-bindgen` dependency.","message":"Only works in WebAssembly targets; requires `wasm-bindgen` and a browser or Node.js environment.","severity":"gotcha","affected_versions":">=0.4.0"}],"env_vars":null,"search_vec":"'async':17 'bindgen':3 'bridg':5 'futur':4,10,15 'gap':7 'javascript':12 'promis':13,16 'rust':9 'wasm':2,14 'wasm-bindgen-futur':1","created_at":"2026-06-16T15:33:44.743173+00:00","updated_at":"2026-06-16T15:33:44.743173+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://wasm-bindgen.github.io/wasm-bindgen/","github":"https://github.com/wasm-bindgen/wasm-bindgen","docs":"https://docs.rs/wasm-bindgen-futures/","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}}