First look at the new Rust GPUI framework from Zed!
Vložit
- čas přidán 15. 06. 2024
- In this stream, we continue on our Rust learning journey by exploring the newly open sourced GPUI framework from Zed Industries. The framework allows us to build UIs that are rendered via the GPU for high performance.
00:00 Intro
00:29 New Cargo project
01:20 The big picture
03:43 Hello world
05:21 Theming
07:31 Could not compile issue
10:00 Theme names
12:20 UI::Button
15:00 Counter
15:21 Button onClick
17:20 Counter state works! - Zábava
Thanks for checking out gpui! It was super cool you were able to pull in stuff from the theme and ui crates and get them working easily :)
Thanks for working on Zed and making something awesome. Looking forward to using/ learning more. I did hit that weird borrow error from the storage settings around 8 min in. Not sure if anyone else hit that
@@duanebester of course! We are happy the community can finally engage with it! I’ll get the team to take a peek at that error.
Thank you, great introduction for gpui 👍🏻
Glad you liked it!
Why don't you use zed editor to write gpui demos?
I’ve been trying it, VSCode is still my comfort for streaming
your audio is doubled
Thanks will look into this!
Rust lurker here. What are those Div trailers in several lines of the render method?
the div().flex().text_xl() stuff? Part of their tailwind-style layout engine. I believe it's powered by taffy - github.com/DioxusLabs/taffy
keep distance from the mic.
don't over process the audio.
Just speak,sound like normal human please.
Thanks- This has been better in more recent videos