The reqwest library has a webassembly backend that uses the fetch() function available in web browsers and node.js environments.
This PR enable the wasm32 target by adding conditional compilation where needed to allow the use of this target. In particular, all features related to SSL/TLS configuration are not available for this target since it is handle by the host webassembly runtime.
Some standalone examples are added to showcase the use of webassembly in a web browser and in a Cloudflare worker.
The
reqwest
library has a webassembly backend that uses thefetch()
function available in web browsers and node.js environments.This PR enable the
wasm32
target by adding conditional compilation where needed to allow the use of this target. In particular, all features related to SSL/TLS configuration are not available for this target since it is handle by the host webassembly runtime.Some standalone examples are added to showcase the use of webassembly in a web browser and in a Cloudflare worker.