Sharing thoughts on Tauri+Remix+(Deno) #51
eric-burel
started this conversation in
General
Replies: 1 comment
-
@JonasKruckenberg might want to attempt this haha |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey, I've just discovered Astrodon via Hacker News. It's funny because 2 weeks ago we were discussing the possibility of using Remix in Tauri and this lead me to think about the pros and cons of JS runtimes within a Tauri app.
I just wanted to share my personal notes cause they can be useful. It's specific to Remix framework, but take it as an example of mixing Rust and JS efficiently.
Why using Tauri Remix?
TL;DR: it should reduce development costs when there is no skilled Rust dev in the team
Why you should not use Tauri Remix?
TL;DR: app will be bigger, maybe less secure, less "idiomatic" of Tauri. You probably don't need Remix.
Why Remix and not Next
Why Deno and not Node
Deno is written in Rust which could, potentially, enable more interesting use cases
https://deno.com/blog/roll-your-own-javascript-runtime
Back/front communication
tRPC for typed communication, RSPC
See https://discord.com/channels/867764511159091230/1002486133265027152
Quoting oscartbeaumont:
"I am working on a project called rspc (https://github.com/oscartbeaumont/rspc) which is a tRPC-like server for Rust. We are planning to use it on Spacedrive (https://spacedrive.com/). However it's a very new project and probably not ready for prime time yet. I assume Tauri's Deno backend (which I recall being on the roadmap) with tRPC would be a pretty solid combination once that's ready."
"Figure I'd mention we're also working on integrating Prisma Client Rust with rspc, should make for a sweet Rust web dev experience when it's ready. https://twitter.com/brendonovichdev/status/1550981254904160257"
Beta Was this translation helpful? Give feedback.
All reactions