DEV Community

Discussion on: 🔥 Why I chose Tauri instead of Electron 🔥

Collapse
 
nishchit14 profile image
Nishchit

How do you use Rust as backend for more complex logic? My concern is my desktop specific code is heavily dependant on NodeJS runtime like reading local folders and parsing OpenAPI files etc. Suck kind of usecase is possible with Tauri?

My guess is if Tauri has JS binding then It might works.

Collapse
 
goenning profile image
Guilherme Oenning

You can read and parse OpenAPI files with rust too, this crate for example: lessis.me/openapi/openapi/index.html

You can ship a NodeJS process as a sidecar and invoke that from rust at runtime, but it'll be slower and your app bundle will be bigger.