Tauri
rspc has a built-in integration with Tauri so that you can expose your API to your frontend code using Tauri's IPC.
Enable feature
For the integration to work you must enable the tauri feature of rspc. Ensure the rspc line in your Cargo.toml file looks like the following:
Read more about Rust features here
Usage
Then expose your router using the Tauri plugin.
Usage on frontend
You can use the client by itself or integrate with the Tanstack Query hooks.
Edit on GitHub
Last updated on