r/rust • u/nicoburniske • 2d ago
🛠️ project blit: immediate (yet deferred) mode UI
I've been working on this for 5 months and was hesitant to post given the flood of rust UI frameworks.
its modularity is pretty unique compared to other rust UI libs. the core is #![no_std] with zero dependencies, and it runs on embedded devices (with a very fast software renderer), TUIs, and wgpu.
it's still early and experimental, but hope you find the writeup interesting
91
Upvotes
19
u/syberianbull 1d ago
Embedded UI is a very underserved niche in Rust with only Slint being an option the last time I checked. But Slint licensing is a bit problematic for some applications, so any advances in this space are very welcome, keep going!
My particular use case would be something self made that is analogous to https://gaggiuino.github.io/#/?id=home. If blit supported all of the necessary widgets and can be comprehended by a non-softeare related engineer, it would immediately move into my perspective stack for the project (it's a very very long term type of thing 🙈).
And make sure to get blit listed on areweguiyet.com with an embedded tag for improved discoverability.
3
u/CaptainJack42 1d ago
This looks neat, might give it a shot once I find some time. Do you have any Benchmarks about flash/ram requirements for embedded use cases?
7
u/BrilliantArmadillo64 1d ago
Amazing work!
You could add your framework to https://blog.zortax.de/posts/benchmarking-gui-frameworks
4
u/teerre 1d ago
Very nice
2
u/Immotommi 4h ago
I was reading your article think that this reminds me of Anton's video, then I saw your attribution at the end.
Really love that it is no std. Being able to bring your own allocator is really cool
5
u/titaniumalt 1d ago
Awesome library, great ideas, also great execution, can't find signs of AI, and i really wanted to find something like
blitfor a long time already, congratulations!1
u/stylist-trend 1d ago
Looks neat! This feels like it would work well as the graphics layer for firmware on the FM-1
1
u/wyvernbw 1d ago
this looks super cool and i usually hate new rust gui frameworks, great job. i was just about to give up and write my app's ui in swift, so this came at a weirdly right time, i'll keep an eye on it. Are there any plans to support accessibility?
1
u/rexpup 22h ago
Thanks for posting this! I just was looking for a UI for the Pimoroni Presto. I've gotten started with blit.
-18
u/Sermuns 2d ago
read rules of subreddit.