iced-rs / iced

A cross-platform GUI library for Rust, inspired by Elm
https://iced.rs
MIT License
22.96k stars 1.06k forks source link

Support wasm target for `download_progress` #2419

Open skygrango opened 2 weeks ago

skygrango commented 2 weeks ago

I think it works, but I did make some tricky modifications because

  1. reqwest doesn't support chunk method for wasm, I have to replace chunk by stream
  2. the futures generated by wasm_bindgen NO Send, so I have to pin stream

螢幕截圖_20240502_171755