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]
14test-support = [
15 "backtrace",
16 "collections/test-support",
17 "util/test-support",
18]
19runtime_shaders = []
20macos-blade = ["blade-graphics", "blade-macros", "blade-rwh", "bytemuck"]
21
22[lib]
23path = "src/gpui.rs"
24doctest = false
25
26[dependencies]
27anyhow.workspace = true
28async-task = "4.7"
29backtrace = { version = "0.3", optional = true }
30blade-graphics = { workspace = true, optional = true }
31blade-macros = { workspace = true, optional = true }
32blade-rwh = { workspace = true, optional = true }
33bytemuck = { version = "1", optional = true }
34collections.workspace = true
35ctor.workspace = true
36derive_more.workspace = true
37env_logger.workspace = true
38etagere = "0.2"
39futures.workspace = true
40font-kit = { git = "https://github.com/zed-industries/font-kit", rev = "5a5c4d4" }
41gpui_macros.workspace = true
42image = "0.23"
43itertools.workspace = true
44lazy_static.workspace = true
45linkme = "0.3"
46log.workspace = true
47num_cpus = "1.13"
48parking = "2.0.0"
49parking_lot.workspace = true
50pathfinder_geometry = "0.5"
51postage.workspace = true
52profiling.workspace = true
53rand.workspace = true
54raw-window-handle = "0.6"
55refineable.workspace = true
56resvg = "0.14"
57schemars.workspace = true
58seahash = "4.1"
59serde.workspace = true
60serde_derive.workspace = true
61serde_json.workspace = true
62slotmap = "1.0.6"
63smallvec.workspace = true
64smol.workspace = true
65sum_tree.workspace = true
66taffy = { git = "https://github.com/DioxusLabs/taffy", rev = "1876f72bee5e376023eaa518aa7b8a34c769bd1b" }
67thiserror.workspace = true
68time.workspace = true
69tiny-skia = "0.5"
70usvg = { version = "0.14", features = [] }
71util.workspace = true
72uuid = { version = "1.1.2", features = ["v4", "v5"] }
73waker-fn = "1.1.0"
74
75[dev-dependencies]
76backtrace = "0.3"
77collections = { workspace = true, features = ["test-support"] }
78util = { workspace = true, features = ["test-support"] }
79
80[build-dependencies]
81bindgen = "0.65.1"
82cbindgen = "0.26.0"
83
84[target.'cfg(target_os = "macos")'.dependencies]
85block = "0.1"
86cocoa = "0.25"
87core-foundation.workspace = true
88core-graphics = "0.23"
89core-text = "20.1"
90foreign-types = "0.5"
91log.workspace = true
92media.workspace = true
93metal = "0.25"
94objc = "0.2"
95
96[target.'cfg(any(target_os = "linux", target_os = "windows"))'.dependencies]
97flume = "0.11"
98#TODO: use these on all platforms
99blade-graphics.workspace = true
100blade-macros.workspace = true
101blade-rwh.workspace = true
102bytemuck = "1"
103cosmic-text = "0.10.0"
104copypasta = "0.10.1"
105
106[target.'cfg(target_os = "linux")'.dependencies]
107open = "5.0.1"
108ashpd = "0.7.0"
109x11rb = { version = "0.13.0", features = ["allow-unsafe-code", "xkb", "randr"] }
110wayland-client = { version = "0.31.2" }
111wayland-cursor = "0.31.1"
112wayland-protocols = { version = "0.31.2", features = [
113 "client",
114 "staging",
115 "unstable",
116] }
117wayland-backend = { version = "0.3.3", features = ["client_system"] }
118xkbcommon = { version = "0.7", features = ["wayland", "x11"] }
119as-raw-xcb-connection = "1"
120calloop = "0.12.4"
121calloop-wayland-source = "0.2.0"
122oo7 = "0.3.0"
123
124[target.'cfg(windows)'.dependencies]
125windows.workspace = true
126
127[[example]]
128name = "hello_world"
129path = "examples/hello_world.rs"
130
131[[example]]
132name = "image"
133path = "examples/image/image.rs"
134
135[[example]]
136name = "set_menus"
137path = "examples/set_menus.rs"