This is a small demo of witx-bindgen
and async
functions. The demo
provides a form where a URL to a .tar.gz
tarball is input, and the demo will,
from wasm, download, decompress, and extract the file. The file can then be
explored by clicking each of the files.
This is intended to show a number of features of witx-bindgen
and interface
types in concert with one another, including:
async
- the fetch
method is exposed to wasm as an async method and theResponse
structure has an async
method for further loading the body..gz
container and the.tar
format of the downloaded tarballs, but readily available crates from