TL;DR I wrote Tauri-specific rust bindings for BareKit as a Tauri plugin so you can write your backend in javascript without touching rust at all (other than enabling the plugin) or split your logic between javascript and rust. Most modules on NPM work out of the box. Native addons are autolinked. Mobile is supported as well. Interested? Read on!

The plugin: tauri-plugin-bare-kit.

I have to preface this by saying that I have nothing against rust at all. I found it quite rewarding writing this plugin in rust and I believe rust is the future of systems programming. My actual reason for writing this plugin is a dependency problem: I depend on Holepunch stack, which is primarily javascript and there's nothing quite like it for rust (although there's a long running effort to port the stack to rust). That said, you can't deny that javascript has a much lower barrier-to-entry than rust, regardless of how you feel about it.

Now to understand what this plugin is all about we have to talk about Bare and BareKit.

Bare, created and maintained by Holepunch, in the words of it's creators: