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 = []
15test-support = [
16 "backtrace",
17 "collections/test-support",
18 "util/test-support",
19 "http_client/test-support",
20]
21runtime_shaders = []
22macos-blade = ["blade-graphics", "blade-macros", "blade-util", "bytemuck"]
23
24[lib]
25path = "src/gpui.rs"
26doctest = false
27
28[dependencies]
29anyhow.workspace = true
30async-task = "4.7"
31backtrace = { version = "0.3", optional = true }
32blade-graphics = { workspace = true, optional = true }
33blade-macros = { workspace = true, optional = true }
34blade-util = { workspace = true, optional = true }
35bytemuck = { version = "1", optional = true }
36collections.workspace = true
37ctor.workspace = true
38derive_more.workspace = true
39env_logger.workspace = true
40etagere = "0.2"
41futures.workspace = true
42font-kit = { git = "https://github.com/zed-industries/font-kit", rev = "40391b7" }
43gpui_macros.workspace = true
44http_client.workspace = true
45image = "0.25.1"
46itertools.workspace = true
47lazy_static.workspace = true
48linkme = "0.3"
49log.workspace = true
50num_cpus = "1.13"
51parking = "2.0.0"
52parking_lot.workspace = true
53pathfinder_geometry = "0.5"
54postage.workspace = true
55profiling.workspace = true
56rand.workspace = true
57raw-window-handle = "0.6"
58refineable.workspace = true
59resvg = { version = "0.41.0", default-features = false }
60usvg = { version = "0.41.0", default-features = false }
61schemars.workspace = true
62seahash = "4.1"
63semantic_version.workspace = true
64serde.workspace = true
65serde_derive.workspace = true
66serde_json.workspace = true
67slotmap = "1.0.6"
68smallvec.workspace = true
69smol.workspace = true
70sum_tree.workspace = true
71taffy = "0.4.3"
72thiserror.workspace = true
73time.workspace = true
74util.workspace = true
75uuid.workspace = true
76waker-fn = "1.2.0"
77
78[dev-dependencies]
79backtrace = "0.3"
80collections = { workspace = true, features = ["test-support"] }
81util = { workspace = true, features = ["test-support"] }
82http_client = { workspace = true, features = ["test-support"] }
83unicode-segmentation.workspace = true
84
85[build-dependencies]
86embed-resource = "2.4"
87
88[target.'cfg(target_os = "macos")'.build-dependencies]
89bindgen = "0.65.1"
90cbindgen = { version = "0.26.0", default-features = false }
91
92[target.'cfg(target_os = "macos")'.dependencies]
93block = "0.1"
94cocoa.workspace = true
95core-foundation.workspace = true
96core-foundation-sys = "0.8"
97core-graphics = "0.23"
98core-text = "20.1"
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 = "windows"))'.dependencies]
106flume = "0.11"
107blade-graphics.workspace = true
108blade-macros.workspace = true
109blade-util.workspace = true
110bytemuck = "1"
111cosmic-text = { git = "https://github.com/pop-os/cosmic-text", rev = "542b20c" }
112
113[target.'cfg(target_os = "linux")'.dependencies]
114as-raw-xcb-connection = "1"
115ashpd.workspace = true
116calloop = "0.13.0"
117calloop-wayland-source = "0.3.0"
118wayland-backend = { version = "0.3.3", features = ["client_system", "dlopen"] }
119wayland-client = { version = "0.31.2" }
120wayland-cursor = "0.31.1"
121wayland-protocols = { version = "0.31.2", features = [
122 "client",
123 "staging",
124 "unstable",
125] }
126wayland-protocols-plasma = { version = "0.2.0", features = ["client"] }
127oo7 = "0.3.0"
128open = "5.2.0"
129filedescriptor = "0.8.2"
130x11rb = { version = "0.13.0", features = [
131 "allow-unsafe-code",
132 "xkb",
133 "randr",
134 "xinput",
135 "cursor",
136 "resource_manager",
137 "sync",
138] }
139xkbcommon = { git = "https://github.com/ConradIrwin/xkbcommon-rs", rev = "fcbb4612185cc129ceeff51d22f7fb51810a03b2", features = [
140 "wayland",
141 "x11",
142] }
143xim = { git = "https://github.com/npmania/xim-rs", rev = "27132caffc5b9bc9c432ca4afad184ab6e7c16af", features = [
144 "x11rb-xcb",
145 "x11rb-client",
146] }
147font-kit = { git = "https://github.com/zed-industries/font-kit", rev = "40391b7", features = [
148 "source-fontconfig-dlopen",
149] }
150x11-clipboard = "0.9.2"
151
152[target.'cfg(windows)'.dependencies]
153windows.workspace = true
154windows-core = "0.58"
155
156[[example]]
157name = "hello_world"
158path = "examples/hello_world.rs"
159
160[[example]]
161name = "image"
162path = "examples/image/image.rs"
163
164[[example]]
165name = "set_menus"
166path = "examples/set_menus.rs"
167
168[[example]]
169name = "window_shadow"
170path = "examples/window_shadow.rs"
171
172[[example]]
173name = "input"
174path = "examples/input.rs"
175
176[[example]]
177name = "shadow"
178path = "examples/shadow.rs"