Oh damn #dioxus supports terminal UI renderers? π€― https://bcnrust.github.io/devbcn-workshop/index.html #rust
Have been having issues with #Yew with especially stylist recently. This may mean work on the blog will pause for a bit. Seem there is a bug with #rustlang 1.70 that impacts wasm environments. The workaround I can't seem to get to work with stylist. Maybe it's time to give #Dioxus a go given it seems to be an all in one solution and I do need to build a desktop app to make my life easier next week...
As is the usual for any of my sites - this is entirely static. You can view the entire thing without enabling Javascript. :aliceheartblack:β
Additionally, as you may see if you decide to check out the source code, this was written entirely with #Rust using the #Dioxus and #Rocket crates! It was a bit of a learning curve, but very fun, and I certainly got myself to be a bit more comfortable with the language as a result. :alicemlem:β
Do keep in mind that in order to maintain user preferences on fonts and themes, the site does store two cookies in your browser. I may change this in the future, but that was the simplest solution for the time being.
Late to the party, but here's something I've been working to on to celebrate 500 followers - A letter to the void is here! :alicehappy:β
I'll be posting my poetry on there (there's a new one up now!), and I'll be doing updates to the site as well, so feel free to bookmark it if you're interested! :aliceheartblack:β
#trans #poetry #rust #dioxus
So, with #Dioxus, it seems like the best I can do with regards to having it play nice with rust-analyzer is just to let it run cargo check while targeting wasm32-unknown-unknown and call it a day. Since dioxus-cli doesn't implement a json message output nor does it have its own form of a check, overriding the check command for build is ugly and slow, so I'd just rather allow the check to happen normally and run a dioxus serve --hot-reload in the terminal. :alicesideeye:
Honestly, with as much trouble as #Dioxus has been so far as just a front-end component.... It's still really fucking nice to have. Even if I do substitute the backend for #Rocket since I feel it's really lacking on routing options and has some jank SSR support... The fact that if I wanted to I could turn around and make web projects into a desktop app is kinda too neat to pass up. :alicesideeye:
Good to hear on the latest episode of Rustacean Station (https://rustacean-station.org/episode/josh-matthews/) that @servo is having a second wind.
For all the fecundity in #Rust UI frameworks, I would still bet on web tech. Browser engine diversity is an absolute must.
It's obviously a way off, but it would be interesting to see if Servo could have a future in projects like #Tauri and #dioxus
#rust #tauri #dioxus #rustlang
@garrowbregenza I'm in a similar situation. I wanted to add a GUI to an existing #Rust cli project, with limited Rust abilities.
The one I've been able to make any headway with is Tauri. I would prefer not to use a js front end, but by keeping the UI layer very thin and doing most of the work on the Tauri/Rust side of the bridge, you can keep it minimal. You can use Rust for the FE, but Tauri doesn't hold your hand as much as with js.
#Dioxus has potential, but I've found it pretty inscrutable
I find the #Dioxus website misleading. It's in the nature of open source that much isn't truly ready for user-space programmers, and that's fine. But honesty is always and everywhere a requirement. With its "Feature-packed Examples" (few of which are documented, and only one of which I could get to run), "Start building today, with Dioxus" (surely only possible for superior #Rust developers), the Dioxus web site is borderline deceptive (even given the slack we rightly give open source projects)
I had a typo in the extension for the font file I was trying to serve, and the CSS was attempting to ask for a local install of it, which obviously wasn't going to work on most devices. :alicemlem:β
Aside from that, I changed the pre-rendered HTML from Dioxus to go into a non-escaped HTML template being rendered through Rocket, using Handlebars. That should be a much better solution than simply manually writing some shitty HTML by paw and then casting the string as RawHtml(). :alicesweat:β
In the future, it would be good to separate the Dioxus and Rocket parts into subcrates, so one could run dioxus serve in one, and cargo run in the main one. (something like this)Buuuut... that's for later, I need a break. :aliceweh:β
#rust #dioxus #rocket #tailwindcss
Okay, so like... I have the site working, and I'm realizing that I absolutely can't get the site to be served with static assets alone. I would absolutely need to use some kind of other framework or write html to a file if I want static assets. That's fine, but it requires more work as well. Oh well, time to check out #rocket
Another option would be to have the SSR only output the HTML if I'm building for release, then I can just serve those assets alone with something like nginx. :alicesideeye:β
But then that requires using nginx for things like routing and I'm not really about that. :aliceweh:β
#rocket #rust #dioxus #staticsiterendering
Okay, I finished that already! :alicemlem:β
That was really easy once I actually got #Dioxus and #TailwindCSS working. Excited to tackle a bigger project now! :aliceheartblack:β
Okay, I finished that already! :alicemlem:β
That was really easy once I actually got #Dioxus and #TailwindCSS working. Excited to tackle a bigger project now! :aliceheartblack:β
I've been avoiding #Rust for web front end as it's all so new/churny, and js/ts is mature & easily SO/google/OpenAI-able even for a front-end naΓ―f like myself.
But now I'm not so sure. I admire the Deno folks' attempts to simplify/unify the whole ecosystem. Seeing how the attempt to do this just for dependencies itself gets increasingly complex (https://deno.com/blog/package-json-support) makes me think just ditching the whole farrago could be worthwhile for those who can.
#Leptos and #Dioxus look tempting.
Dioxus - Dioxus is a user interfaces that run anywhere. Written in Rust, inspired by React. https://dioxuslabs.com/ #Dev #Rust #UI #Dioxus by @dioxuslabs@twitter.com
Just discovered the #dioxus framework that let you write #rust app in react style, seriously !? What the #rust ?! Since I decided to go back to #rustlang I discovered so many incredible modules, thanks you #rustaceans π¦β€οΈπ¦!
#rustaceans #rustlang #rust #dioxus