matrix-org / matrix-rust-sdk

Matrix Client-Server SDK for Rust
Apache License 2.0
1.26k stars 252 forks source link

Support WASI target #3897

Open Ludea opened 2 months ago

Ludea commented 2 months ago

It would be awesome if you could support some wasm32-wasi targets. There is no need to js bindings (wasm-bindgen)

Hywan commented 2 months ago

Hi!

To clarify a little bit: WASI is the ABI, JS would be the target host. So depending on what and how you want to use the resulting Wasm module, JS bindings might be useful (in a Web environment for example). What's your usecase?

Ludea commented 2 months ago

I would like to use https://extism.org/. So it's not a js env. I prefer to use wasm instead of native dynamic lib linking because of the size of the final binary. Wasm is smaller than a rust lib.