futursolo / stylist-rs

A CSS-in-Rust styling solution for WebAssembly Applications
https://crates.io/crates/stylist
MIT License
366 stars 22 forks source link

Try to supports WASI targets. #148

Open langyo opened 7 months ago

langyo commented 7 months ago

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.

langyo commented 3 months ago

I see that your Github homepage has no contribution records for a long time... Do you have time to review this branch merge request? @futursolo