I've been trying to use yew to render the page into the static HTML string on WASI. However, stylist cannot distinguish the browser WASM target (wasm32-unknown-unknown with wasm-bindgen) and WASI target (wasm32-wasi), and it would choose wrong modules for wasm32-*.
I have fixed it by using target_os, and it would fix the problem.
I've been trying to use
yew
to render the page into the static HTML string on WASI. However,stylist
cannot distinguish the browser WASM target (wasm32-unknown-unknown
withwasm-bindgen
) and WASI target (wasm32-wasi
), and it would choose wrong modules forwasm32-*
.I have fixed it by using
target_os
, and it would fix the problem.