5 ms·
Hi, author here! 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 "trad
by emilern 4y ago
Hi, author here!
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.
- chanks 4y agoI'm very curious how well this is working for you in practice, since I've been thinking about what it would look like to share a single Rust UI implementation across a webapp and native apps.
- emilern 4y agoSo far so good! Putting the UI in a canvas elements have some distinct drawbacks (https://github.com/emilk/egui/tree/master/crates/eframe#problems-with-running-egui-on-the-web 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 https://github.com/gfx-rs/wgpu) that we will likewise use for both web and desktop.
- panzi 4y agoHow does egui interact with screen readers and other accessibility APIs?
- emilern 4y agoSo-so. There is an experimental screen reader you can enable in the "Backend" panel of egui.rs. There is ongoing work to integrate AccessKit (https://github.com/AccessKit/accesskit https://github.com/AccessKit/accesskit) which will improve things significantly.
- mwcampbell 4y agoAnyone who's interested in the AccessKit integration can play with my work-in-progress branch: https://github.com/mwcampbell/egui/tree/accesskit https://github.com/mwcampbell/egui/tree/accesskit It's currently Windows-only, and I'm working on the big missing feature, which is text editing support.
- bern4444 4y agoDoesn’t dart/flutter do this? Render everything to a canvas. 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