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