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/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 = "5a5c4d4" }
43gpui_macros.workspace = true
44http.workspace = true
45image = "0.23"
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.1.0"
77
78[dev-dependencies]
79backtrace = "0.3"
80collections = { workspace = true, features = ["test-support"] }
81util = { workspace = true, features = ["test-support"] }
82http = { workspace = true, features = ["test-support"] }
83
84[target.'cfg(target_os = "macos")'.build-dependencies]
85bindgen = "0.65.1"
86cbindgen = "0.26.0"
87
88[target.'cfg(target_os = "macos")'.dependencies]
89block = "0.1"
90cocoa.workspace = true
91core-foundation.workspace = true
92core-graphics = "0.23"
93core-text = "20.1"
94foreign-types = "0.5"
95log.workspace = true
96media.workspace = true
97metal = "0.25"
98objc = "0.2"
99
100[target.'cfg(any(target_os = "linux", target_os = "windows"))'.dependencies]
101flume = "0.11"
102blade-graphics.workspace = true
103blade-macros.workspace = true
104blade-util.workspace = true
105bytemuck = "1"
106cosmic-text = { git = "https://github.com/pop-os/cosmic-text", rev = "542b20c" }
107
108[target.'cfg(target_os = "linux")'.dependencies]
109as-raw-xcb-connection = "1"
110ashpd.workspace = true
111calloop = "0.13.0"
112calloop-wayland-source = "0.3.0"
113wayland-backend = { version = "0.3.3", features = ["client_system", "dlopen"] }
114wayland-client = { version = "0.31.2" }
115wayland-cursor = "0.31.1"
116wayland-protocols = { version = "0.31.2", features = [
117 "client",
118 "staging",
119 "unstable",
120] }
121wayland-protocols-plasma = { version = "0.2.0", features = ["client"] }
122oo7 = "0.3.0"
123open = "5.1.2"
124filedescriptor = "0.8.2"
125x11rb = { version = "0.13.0", features = [
126 "allow-unsafe-code",
127 "xkb",
128 "randr",
129 "xinput",
130 "cursor",
131 "resource_manager",
132] }
133xkbcommon = { version = "0.7", features = ["wayland", "x11"] }
134xim = { git = "https://github.com/npmania/xim-rs", rev = "27132caffc5b9bc9c432ca4afad184ab6e7c16af", features = [
135 "x11rb-xcb",
136 "x11rb-client",
137] }
138x11-clipboard = "0.9.2"
139
140[target.'cfg(windows)'.dependencies]
141windows.workspace = true
142windows-core = "0.57"
143clipboard-win = "3.1.1"
144
145[target.'cfg(windows)'.build-dependencies]
146embed-resource = "2.4"
147
148[[example]]
149name = "hello_world"
150path = "examples/hello_world.rs"
151
152[[example]]
153name = "image"
154path = "examples/image/image.rs"
155
156[[example]]
157name = "set_menus"
158path = "examples/set_menus.rs"