Closed leeola closed 3 years ago
As a fallback, i plan on using the web-sys
crate to communicate with the window.__TAURI__
object.
I am having the same issue. It would be nice if there was a wasm API. This would make it easier to integrate with front end rust frameworks such as yew and seed.
The core team has decided that we won't be implementing this anytime soon do to the difficulty of maintaining two backends for the API, we have a lot of other work that is much higher priority.
Describe the bug When attempting to build
tauri_api
for a WASM target, the build fails. Specifically:Expected behavior I expect a Rust API to be able to run from WASM and communicate to the Tauri backend, for things like setting window titles, window visibility, etc.
Platform and Versions (please complete the following information):
OS: OSX (10.14) Node: 14.5.0 NPM: 6.14.6 Yarn: 1.22.4 Rustc: rustc 1.46.0-nightly (67100f61e 2020-06-24) Target: WASM