by emilern · 4y ago · 0 comments
We are building the frontend of our _application_ in Rust and rendering it to a canvas using egui.rs. For the web site we are using more "traditional" tech, as you've noticed.
I am not a big fan of the complexity of modern web sites (including our own), which is exactly why I created egui. However, it is targeted at web apps, not web sites.
Putting the UI in a canvas elements have some distinct drawbacks (https://github.com/emilk/egui/tree/master/crates/eframe#prob...) but for us it is definitely worth it. Having one unified codebase for our web app and native app, and having it all in Rust, is just amazing.
We're currently working on a 3D renderer based on wgpu (https://github.com/gfx-rs/wgpu) that we will likewise use for both web and desktop.
There is ongoing work to integrate AccessKit (https://github.com/AccessKit/accesskit) which will improve things significantly.
It's currently Windows-only, and I'm working on the big missing feature, which is text editing support.
It is difficult to believe this will be the future of the web.
I don’t think websites should take this approach. Seems like a bad idea