You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add WASI support for server-side rendering. (yewstack#3534)
* Try to add wasi feature to avoid browser's ABI.
* Add async render for single-threaded env.
* Temporarily enable my own patch branch.
It would be modified later
after the corresponding library branches are merged.
* add example for WASI SSR.
* Ready to run WASI on wasmtime.
* complete the example
* fix fmt
* fix fmt
* I made a mistake..sry
* add yew-router suites for demo
* fix typo
* Make the async render stream function public
* Use target_os instead of feature.
* Renew gloo-history's patch.
* Exclude WASI example to avoid web-sys.
* Try to add CI for WASI example.
* Fix CI.
* Fix CI that requires compiler 1.67 or newer.
* Use CLI's flag instead of exclude example.
bytecodealliance/wasmtime#4312
* Remove patchs.
* Use LocalServerRenderer instead of ServerRenderer.
yewstack/tokise#11 (comment)
* Remove unused exports.
* Add description about `LocalServerRenderer`.
* fix fmt
* fix fmt
* Update Cargo.lock
* Bump rust compiler's version to 1.67...
* Exclude WASI on yew-router browser interfaces.
* fix fmt
* Wait for gloo's PR dealed.
* Rollback to rust compiler 1.64.
cc rustwasm/gloo#423 (comment)
* Fix lock file.
* Downgrade `toml_datetime` version.
* Fix enum for `gloo-history`.
* Well, it seems there is no way to avoid the MSRV upgrade....
* fix: Replace feature = "wasi" to target_os = "wasi".
* Remove tips for rust version.
* Bump `gloo` to 0.11.
* Try to test yew-macro on compiler 1.67.
* Try to use compiler 1.68 instead.
* Try to use compiler 1.69 instead......
* Revert MSRV back
* Pin the oldest Cargo.lock.
* Downgrade deps for MSRV.
* Bump benchmark tool's tokio to 1.35
* Try to write WASI CI.
* Rollback the quotes
* Combine CI files...
* Rollback the use that gloo-history has fixed it.
* fix
* Bump gloo-history version.
* Block raw html update tests on WASI.
* Rollback indexmap's version.
* fix CI
* fix CI
* Update some SSR test suites that replace ServerRender instead of LocalServerRender.
* Remove yew-router's cfg macro
* Fix fmt
* Try to fix CI
* Update examples/wasi_ssr_module/README.md
Co-authored-by: Elina <[email protected]>
* Revert back some unnecessary changes.
* Clippy
* fmt
* Fix CI.
* Fix CI.
* Try to fix clippy.
* Fix `ToString` trait.
* Remove pin version of WASI CI test.
* Pin the newer version.
* Fix typo.
* Bump `wasm-bindgen`.
* Fix SSR example.
* Fix typo.
* Try to support non-browser environments.
* Update wasm-bindgen-test to 0.3.43
refer to rustwasm/wasm-bindgen#4083
* fix doc test running on nightly
* Update website/docs/advanced-topics/server-side-rendering.md
Co-authored-by: WorldSEnder <[email protected]>
* Update WASI CI.
* Remove WASI test for rustc 1.76.
* Try to let `wasmtime` CLI can be executed.
* Limit the function `decode_base64` that it shouldn't runnable in non-browser environment.
* Remove WASI example test for rustc 1.76.
* Revert changes.
* Fix CI
* Fix Cargo.lock
* Remove unused deps
* Undo the formatting changes.
* Undo the formatting changes.
---------
Co-authored-by: Elina <[email protected]>
Co-authored-by: Martin Molzer <[email protected]>
Copy file name to clipboardexpand all lines: examples/README.md
+1
Original file line number
Diff line number
Diff line change
@@ -60,6 +60,7 @@ As an example, check out the TodoMVC example here: <https://examples.yew.rs/todo
60
60
|[web_worker_fib](web_worker_fib)|[F]| Calculate Fibonacci numbers in a web worker thread using [`yew-agent`](https://docs.rs/yew-agent/latest/yew_agent/). |
61
61
|[web_worker_prime](web_worker_prime)|[F]| Calculate Prime numbers in a web worker thread using [`yew-agent`](https://docs.rs/yew-agent/latest/yew_agent/). |
62
62
|[webgl](webgl)|[S]| Controls a [WebGL canvas](https://developer.mozilla.org/en-US/docs/Web/API/WebGL_API/Tutorial/Getting_started_with_WebGL) from Yew. |
63
+
|[wasi_ssr_module](wasi_ssr_module)|[F]| Demonstrates server-side rendering using WASI. |
> Note: This example requires the wasmtime CLI to be installed. See [wasmtime's installation instructions](https://docs.wasmtime.dev/cli-install.html) for more information.
> 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](https://github.com/rustwasm/gloo/pull/411#discussion_r1421219033).
0 commit comments