1[package]
2name = "gpui"
3version = "0.1.0"
4edition = "2021"
5authors = ["Nathan Sobo <nathan@zed.dev>"]
6description = "Zed's GPU-accelerated UI framework"
7publish = false
8license = "Apache-2.0"
9
10[lints]
11workspace = true
12
13[features]
14default = ["http_client"]
15test-support = [
16 "backtrace",
17 "collections/test-support",
18 "rand",
19 "util/test-support",
20 "http_client?/test-support",
21]
22runtime_shaders = []
23macos-blade = ["blade-graphics", "blade-macros", "blade-util", "bytemuck"]
24
25[lib]
26path = "src/gpui.rs"
27doctest = false
28
29[dependencies]
30anyhow.workspace = true
31async-task = "4.7"
32backtrace = { version = "0.3", optional = true }
33blade-graphics = { workspace = true, optional = true }
34blade-macros = { workspace = true, optional = true }
35blade-util = { workspace = true, optional = true }
36bytemuck = { version = "1", optional = true }
37collections.workspace = true
38ctor.workspace = true
39derive_more.workspace = true
40etagere = "0.2"
41futures.workspace = true
42gpui_macros.workspace = true
43http_client = { optional = true, workspace = true }
44image = "0.25.1"
45itertools.workspace = true
46linkme = "0.3"
47log.workspace = true
48num_cpus = "1.13"
49parking = "2.0.0"
50parking_lot.workspace = true
51postage.workspace = true
52profiling.workspace = true
53rand = { optional = true, workspace = true }
54raw-window-handle = "0.6"
55refineable.workspace = true
56resvg = { version = "0.41.0", default-features = false }
57usvg = { version = "0.41.0", default-features = false }
58schemars.workspace = true
59seahash = "4.1"
60semantic_version.workspace = true
61serde.workspace = true
62serde_derive.workspace = true
63serde_json.workspace = true
64slotmap = "1.0.6"
65smallvec.workspace = true
66smol.workspace = true
67strum.workspace = true
68sum_tree.workspace = true
69taffy = "0.4.3"
70thiserror.workspace = true
71util.workspace = true
72uuid.workspace = true
73waker-fn = "1.2.0"
74
75[dev-dependencies]
76backtrace = "0.3"
77collections = { workspace = true, features = ["test-support"] }
78env_logger.workspace = true
79rand.workspace = true
80util = { workspace = true, features = ["test-support"] }
81http_client = { workspace = true, features = ["test-support"] }
82unicode-segmentation.workspace = true
83
84[build-dependencies]
85embed-resource = "2.4"
86
87[target.'cfg(target_os = "macos")'.build-dependencies]
88bindgen = "0.70.0"
89cbindgen = { version = "0.27.0", default-features = false }
90
91[target.'cfg(target_os = "macos")'.dependencies]
92block = "0.1"
93cocoa.workspace = true
94core-foundation.workspace = true
95core-foundation-sys = "0.8"
96core-graphics = "0.23"
97core-text = "20.1"
98font-kit = { git = "https://github.com/zed-industries/font-kit", rev = "40391b7" }
99foreign-types = "0.5"
100log.workspace = true
101media.workspace = true
102metal = "0.29"
103objc = "0.2"
104
105[target.'cfg(any(target_os = "linux", target_os = "macos"))'.dependencies]
106pathfinder_geometry = "0.5"
107
108[target.'cfg(any(target_os = "linux", target_os = "windows"))'.dependencies]
109blade-graphics.workspace = true
110blade-macros.workspace = true
111blade-util.workspace = true
112bytemuck = "1"
113flume = "0.11"
114
115[target.'cfg(target_os = "linux")'.dependencies]
116as-raw-xcb-connection = "1"
117ashpd.workspace = true
118calloop = "0.13.0"
119calloop-wayland-source = "0.3.0"
120cosmic-text = { git = "https://github.com/pop-os/cosmic-text", rev = "542b20c" }
121wayland-backend = { version = "0.3.3", features = ["client_system", "dlopen"] }
122wayland-client = { version = "0.31.2" }
123wayland-cursor = "0.31.1"
124wayland-protocols = { version = "0.31.2", features = [
125 "client",
126 "staging",
127 "unstable",
128] }
129wayland-protocols-plasma = { version = "0.2.0", features = ["client"] }
130oo7 = "0.3.0"
131open = "5.2.0"
132filedescriptor = "0.8.2"
133x11rb = { version = "0.13.0", features = [
134 "allow-unsafe-code",
135 "xkb",
136 "randr",
137 "xinput",
138 "cursor",
139 "resource_manager",
140 "sync",
141] }
142xkbcommon = { git = "https://github.com/ConradIrwin/xkbcommon-rs", rev = "fcbb4612185cc129ceeff51d22f7fb51810a03b2", features = [
143 "wayland",
144 "x11",
145] }
146xim = { git = "https://github.com/XDeme1/xim-rs", rev = "d50d461764c2213655cd9cf65a0ea94c70d3c4fd", features = [
147 "x11rb-xcb",
148 "x11rb-client",
149] }
150font-kit = { git = "https://github.com/zed-industries/font-kit", rev = "40391b7", features = [
151 "source-fontconfig-dlopen",
152] }
153x11-clipboard = "0.9.2"
154
155[target.'cfg(windows)'.dependencies]
156rand.workspace = true
157windows.workspace = true
158windows-core = "0.58"
159
160[[example]]
161name = "hello_world"
162path = "examples/hello_world.rs"
163
164[[example]]
165name = "image"
166path = "examples/image/image.rs"
167
168[[example]]
169name = "set_menus"
170path = "examples/set_menus.rs"
171
172[[example]]
173name = "window_shadow"
174path = "examples/window_shadow.rs"
175
176[[example]]
177name = "input"
178path = "examples/input.rs"
179
180[[example]]
181name = "shadow"
182path = "examples/shadow.rs"
183
184[[example]]
185name = "svg"
186path = "examples/svg/svg.rs"
187
188[[example]]
189name = "text_wrapper"
190path = "examples/text_wrapper.rs"
191
192[[example]]
193name = "opacity"
194path = "examples/opacity.rs"
195
196[[example]]
197name = "uniform_list"
198path = "examples/uniform_list.rs"