tauri-apps / tauri

Build smaller, faster, and more secure desktop and mobile applications with a web frontend.
https://tauri.app
Apache License 2.0
83.94k stars 2.52k forks source link

[feat] Rust Wasm crate with the Tauri API #5354

Open MarcAntoine-Arnaud opened 2 years ago

MarcAntoine-Arnaud commented 2 years ago

Describe the problem

We use Yew to wrote our web application in full Rust. We wanna to use Tauri, that requires today to make call via the Javascript.

Describe the solution you'd like

Create 2 crates, one for tauri-api in full Rust, 1 for tauri-api-mock to handle unit tests with mockup.

Alternatives considered

No response

Additional context

No response

amrbashir commented 2 years ago

there has been an effort in this PR https://github.com/tauri-apps/tauri/pull/2239 but it got stalled and I think @JonasKruckenberg is cooking something too

MarcAntoine-Arnaud commented 2 years ago

Cool ! @JonasKruckenberg don't hesitate if you wanna some testers ! We will be happy to contribute.

jvatic commented 1 month ago

I've been working around this with some macros for now (https://github.com/jvatic/tauri-ipc-macros) in case anyone's looking for something to experiment with until we get official bindings. (It'd be really nice to get tauri-bindgen updated with the latest WIT spec though! That route forward seems really promising.)

amrbashir commented 4 weeks ago

I should also mention that there is https://github.com/JonasKruckenberg/tauri-sys