yew/examples/wasi_ssr_module
伊欧 d77cf0196b
Prepare for 0.22 release (#3750)
* Update CHANGELOG
https://github.com/yewstack/yew/actions/runs/11314974928/job/31465588862

* Add items.

* Write blog.

* Archive the documents.

* Add author.

* Update SSR document.

* Fix typo.

* Add simplified Chinese translation.

* Update package.json

* Sync documents

* Add traditional Chinese translation.

* Sync documents

* Add Japanese translation.

* Sync documents

* Fix typo by `fmt:write`.

* Fix typo by `write-translations`.

* Apply suggestions from code review

* Fix typo.

* #3769 in changelog

---------

Co-authored-by: Elina <imelina@elina.website>
2024-12-17 16:27:02 +08:00
..
2024-12-17 16:27:02 +08:00

WASI SSR Module Example

This example demonstrates how to use the WASI target to run a simple server-side rendering application.

It depends on wasmtime's WASI preview2.

Building

To build the example, run the following command from the root of the repository:

cargo build --manifest-path examples/wasi_ssr_module/Cargo.toml --target wasm32-wasip1 --release

Running

Note: This example requires the wasmtime CLI to be installed. See wasmtime's installation instructions for more information.

wasmtime target/wasm32-wasip1/release/wasi_ssr_module.wasm

Note: If your wasmtime CLI throws an error that it says some imports like __wbindgen_placeholder__::__wbindgen_xxx is invalid, try to run cargo update. See issue rustwasm/gloo#411.