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[features]
11test-support = [
12 "backtrace",
13 "dhat",
14 "env_logger",
15 "collections/test-support",
16 "util/test-support",
17]
18runtime_shaders = []
19macos-blade = ["blade-graphics", "blade-macros", "blade-rwh", "bytemuck"]
20
21[lib]
22path = "src/gpui.rs"
23doctest = false
24
25[dependencies]
26anyhow.workspace = true
27async-task = "4.7"
28backtrace = { version = "0.3", optional = true }
29bitflags = "2.4.0"
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
37dhat = { version = "0.3", optional = true }
38env_logger = { version = "0.9", optional = 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 = "0.10"
45lazy_static.workspace = true
46linkme = "0.3"
47log.workspace = true
48num_cpus = "1.13"
49ordered-float.workspace = true
50parking = "2.0.0"
51parking_lot.workspace = true
52pathfinder_geometry = "0.5"
53postage.workspace = true
54rand.workspace = true
55raw-window-handle = "0.6"
56refineable.workspace = true
57resvg = "0.14"
58schemars.workspace = true
59seahash = "4.1"
60serde.workspace = true
61serde_derive.workspace = true
62serde_json.workspace = true
63slotmap = "1.0.6"
64smallvec.workspace = true
65smol.workspace = true
66sum_tree.workspace = true
67taffy = { git = "https://github.com/DioxusLabs/taffy", rev = "1876f72bee5e376023eaa518aa7b8a34c769bd1b" }
68thiserror.workspace = true
69time.workspace = true
70tiny-skia = "0.5"
71usvg = { version = "0.14", features = [] }
72util.workspace = true
73uuid = { version = "1.1.2", features = ["v4"] }
74waker-fn = "1.1.0"
75
76[dev-dependencies]
77backtrace = "0.3"
78collections = { workspace = true, features = ["test-support"] }
79dhat = "0.3"
80env_logger.workspace = true
81png = "0.16"
82simplelog = "0.9"
83util = { workspace = true, features = ["test-support"] }
84
85[build-dependencies]
86bindgen = "0.65.1"
87cbindgen = "0.26.0"
88
89[target.'cfg(target_os = "macos")'.dependencies]
90block = "0.1"
91cocoa = "0.25"
92core-foundation = { version = "0.9.3", features = ["with-uuid"] }
93core-graphics = "0.23"
94core-text = "20.1"
95foreign-types = "0.5"
96log.workspace = true
97media.workspace = true
98metal = "0.25"
99objc = "0.2"
100
101[target.'cfg(target_os = "linux")'.dependencies]
102flume = "0.11"
103open = "5.0.1"
104ashpd = "0.7.0"
105# todo!(linux) - Technically do not use `randr`, but it doesn't compile otherwise
106xcb = { version = "1.3", features = ["as-raw-xcb-connection", "present", "randr", "xkb"] }
107wayland-client= { version = "0.31.2" }
108wayland-protocols = { version = "0.31.2", features = ["client", "staging", "unstable"] }
109wayland-backend = { version = "0.3.3", features = ["client_system"] }
110xkbcommon = { version = "0.7", features = ["wayland", "x11"] }
111as-raw-xcb-connection = "1"
112#TODO: use these on all platforms
113blade-graphics.workspace = true
114blade-macros.workspace = true
115blade-rwh.workspace = true
116bytemuck = "1"
117cosmic-text = "0.10.0"