Рет қаралды 2,830
WASM only provides four types. Wasm-bindgen solves the problem of marshaling and unmarshaling of complex types for Rust to WASM to Javascript for Running WASM in a browser. But wasm-bindgen doesn't work for plugging WASM into Rust
Wit-bindgen to the rescue!
Wit-bindgen can be found here:
github.com/bytecodealliance/w...
My Example Code can be found here:
github.com/masmullin2000/wit-...
Image by: Clint Patterson
unsplash.com/@cbpsc1