http-rs / surf

Fast and friendly HTTP client framework for async Rust
https://docs.rs/surf
Apache License 2.0
1.45k stars 119 forks source link

Fix "could not find `wasm` in `http_client`" error #353

Open wishawa opened 1 year ago

wishawa commented 1 year ago

The compilation conditions for wasm in http-client and in surf are currently different. This difference causes surf to sometimes (usually when running cargo check) try to re-export a module that doesn't exist, leading to the error "could not find wasm in http_client".

This PR changes to condition in surf to be the same as that in http-client.