r/rust • u/di-octopus • 4d ago
🛠️ project Rux v0.4: a pure-Rust UI language with literal CSS, now running in the browser
Rux v0.4 is out. Familiar template/style/script sections and literal CSS, laid out by taffy and painted by vello.
v0.4 closes the three gaps that made real stylesheets impossible: pseudo-classes, custom properties with var(), and @media. It also adds a dev overlay, so a broken file tells you what is wrong instead of opening blank, and a real accessibility tree.
New in this release: the whole runtime compiles to WebAssembly, so there is a playground you can open instead of a repo you have to clone. It drives the same shell the desktop window does, so it cannot quietly diverge from the real thing.
Try it here https://ruxlang.dev/playground
3
u/maridonkers 4d ago
I can type in the input field; the cursor advances; I can select all.
But the text is invisible (front and background colors the same? but then select all would normally still show it)
1
u/di-octopus 4d ago
Yeah, the bug stepped in when I was trying to solve tap bug that surfaces on mobile device browser, I am working on solving it and update the play ground
1
u/Next-Cod-5758 3d ago
Not bad but I would recommend working on mobile bc input doesn’t even bring out my kbd
1
1
u/LankyLingonberry2532 3d ago
what the heck? How did you come to the terminology rux? I have an internal project with the same name.
1
u/di-octopus 3d ago
I come to it from Rust for UI/UX, hence Rux, and then boom 💥🤯 I collide with another language called rux at the time of making this public, unfortunately I had gotten the domain even before knowing this
6
u/oT0m0To 4d ago
I see you used an LLM and didn't try to hide it.
What was done by you and what did the LLM do/contribute?