Second look at the Rust GPUI framework from Zed! Featuring web-sockets
Vložit
- čas přidán 19. 06. 2024
- In this stream we look at how we can get messages from a web-socket connection running in a background process, to update a view in GPUI.
GPUI - gpui.rs
Zed - zed.dev
Github link with the project files - github.com/duanebester/gpui-w...
00:00 Intro
01:15 New cargo workspace
02:57 Hello world up and running
05:15 Multiple apps
13:26 build_view and build_model
14:30 Background task
19:43 Background counter working
20:52 Web-socket server
23:30 Tungstenite web-socket client
27:39 Testing web-socket chat
28:40 Window options
30:36 Outro - Zábava
Great! 💎 Looking forward for the next episode! One thing would be also great to have as an example: scrollable view.
True- good idea
Nice video! May i ask how did you learn to use the gpui Framework? I'm struggling to do a simple app and there is not much documentation to learn
Best thing to do is to join the Zed Industries Discord Server. They have a GPUI channel. Would also recommend checking out Matthias’ Loungy project on GitHub
1:36, you can run `cli: install` from the command palette, and then in the future, open directories from the terminal via `zed .`
Ahh yes, thank you!