Sha256: 184bf64d58820b032a80c738050e7b2cd0042eb722f61c7e8a3c531239f72db2
Contents?: true
Size: 652 Bytes
Versions: 19
Compression:
Stored size: 652 Bytes
Contents
# web-sys: Weather report [View full source code][code] or [view the compiled example online][online] [online]: https://rustwasm.github.io/wasm-bindgen/exbuild/weather_report/ [code]: https://github.com/rustwasm/wasm-bindgen/tree/master/examples/weather_report This example makes an HTTP request to [OpenWeather API](https://openweathermap.org/), parses response in JSON and render UI from that JSON. It also shows the usage of `spawn_local` function for handling asynchronous tasks. Please add your api key in *get_response()* before running this application. ## `src/lib.rs` ```rust {{#include ../../../examples/weather_report/src/lib.rs}} ```
Version data entries
19 entries across 19 versions & 1 rubygems