News for hackers. Stuff that matters.
Re:Dioxus 0.6 – Crossplatform apps with Rust by jasonjmcghee on Wednesday December 11, 2024 @11:00AM (#42389090)
Different purposes- at least that's how it started / feels like it currently is.

A similar comparison would be Electron and React / React Native.

Tauri is a way to package a web app (e.g. could be react or svelte written in typescript) in a window and interface with rust code.

Dioxus is a way to write web apps (and other applications) in pure rust.

Re:Dioxus 0.6 – Crossplatform apps with Rust by airstrike on Wednesday December 11, 2024 @12:07PM (#42390001)
"Pure rust" is not quite accurate given the rsx! macro DSL stuff
Re:Dioxus 0.6 – Crossplatform apps with Rust by jasonjmcghee on Wednesday December 11, 2024 @12:58PM (#42390656)
sure it is. the macro is written in rust and used in rust and compiled using the rust compiler
Re:Dioxus 0.6 – Crossplatform apps with Rust by airstrike on Wednesday December 11, 2024 @01:06PM (#42390752)
the tooling might be in Rust, but now I have to write some new DSL that isn't Rust
Re:Dioxus 0.6 – Crossplatform apps with Rust by jkelleyrtp on Wednesday December 11, 2024 @01:38PM (#42391153)
The DSL is basically just Rust structs with optional fields. We essentially use the same struct parser rust uses but with some small tweaks.

You want to use a macro for this so you can do hot-reloading - doing it with native Rust is currently impractical for rapid dev.

Re:Dioxus 0.6 – Crossplatform apps with Rust by fl0id on Wednesday December 11, 2024 @11:07AM (#42389180)
how pure though if it's using react.
Re:Dioxus 0.6 – Crossplatform apps with Rust by jasonjmcghee on Wednesday December 11, 2024 @11:13AM (#42389248)
it isn't. it's "like react"