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