gpui-tutorial README

The project's README from github.com/hedge-ops/gpui-tutorial. As one markdown file: README.md.

gpui Tutorial

Summary

GPUI is a GPU-accelerated UI framework created by the makers of Zed, written in Rust. It's available on crates.io and licensed under the Apache license, making it usable by commercial projects.

This tutorial uses gpui 0.2.2. To add it to your project:

[dependencies]
gpui = "0.2.2"

Currently there is not a lot of official documentation, so this tutorial aims to take you through the basics of the framework to get started on your own project.

Sections

To understand the basic terms, see the dictionary. To read more on how I learned the framework, see resources.

Future Topics

Missing

Outstanding Questions

gpui-tutorial (hedge-ops/gpui-tutorial)

Searching Database…

这是什么?一份 GPUI 实战教程。GPUI 是 Zed 编辑器的开发团队用 Rust 编写的 GPU 加速 UI 框架。教程从 Hello World 讲起,带你做出自己的第一个应用。
GPUI 是框架本身,还是关于它的教程?是教程——框架本身通过 crates.io 单独发布。之所以有这份指南,是因为 GPUI 的官方文档目前还很少。
我怎么从这个仓库跑起一个 gpui 应用?先从第 00 节开始,确保你的 Rust 环境配置没问题,然后把 crates.io 上的 gpui 0.2.2 添加到你的项目里,再按照第 01 节构建 Hello World 应用。
开始之前我需要会 Rust 吗?需要——教程开头就有一个前置准备部分,确保你掌握 Rust 并且机器环境配置正确,然后才写代码。
这个教程写完了,还是还在更新中?仍在编写中:actions 和 keybindings 那一章标记为 WIP(未完成),菜单、共享状态、动画等主题也只列为未来计划。
GPUI 能用在商业项目里吗?README 里说明 GPUI 采用 Apache 许可证,明确允许商业项目使用。教程仓库本身的元数据里则没有声明许可证。
这些章节具体带我做了什么?先是 Hello World,然后是一个 Likes Counter——点按钮更新状态,接着把这个按钮重构成可复用的组件,最后通过 actions 实现键盘快捷键。
它会解释 GPUI 的术语吗,还是得靠我自己猜?有一份基础术语词典,涵盖这套框架的常用词汇,另外还有一个资源页面,介绍作者自己是怎么学会 GPUI 的。
GPUI 是谁开发的?Zed 又是什么?GPUI 出自 Zed 编辑器背后的团队,把性能放在第一位。这份教程则是由社区里一位作者独立编写的,不是官方文档。
哪些主题计划中但还没讲到?菜单绑定到 actions、条件禁用状态、用 Models 共享状态、图标和输入控件、应用图标资源,以及动画,这些都列为未来主题。
Creator
hedge-ops
Size
1.1 MB
Stars
104
Updated
CommitApr 25
Age
2y
Commits · 90 Days