#Is there a way to call the Tauri API directly from Rust?

2 messages · Page 1 of 1 (latest)

steady delta
#

I was wondering if it is possible to call rust functions directly without using wasm_bindgen? Or is it a requirement for the IPC?

zinc atlas
#

It's indeed a requirement for the IPC. Your frontend runs in a sandbox / separate process from the core/backend so you need wasm_bindgen to call into javascript which has access to the window variable (necessary for the ipc comms)