Skip to content

What is the role of Rust in tauri #2414

Answered by amrbashir
hanxiaohuivc asked this question in Q&A
Discussion options

You must be logged in to vote

Rust is what interacts with the OS apis (filesystem, interacting with databases directly and more) and opens the webview with your front-end.

You can think of rust as the main process in electron app.

Rust can connect to a local database (mongodb for example) using its driver, or connect to your remote database through HTTP requests without CORS limitation if you want.

You can connect to a remote database in your js too but there is a CORS bug on linux as I mentioned in your other discussion or you can use our js http module to avoid CORS.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by amrbashir
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants