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 = []
19
20[lib]
21path = "src/gpui.rs"
22doctest = false
23
24[dependencies]
25anyhow.workspace = true
26async-task = "4.7"
27backtrace = { version = "0.3", optional = true }
28bitflags = "2.4.0"
29blade-graphics = { git = "https://github.com/kvark/blade", branch = "zed" }
30blade-macros = { git = "https://github.com/kvark/blade", branch = "zed" }
31bytemuck = "1"
32collections = { path = "../collections" }
33ctor.workspace = true
34derive_more.workspace = true
35dhat = { version = "0.3", optional = true }
36env_logger = { version = "0.9", optional = true }
37etagere = "0.2"
38futures.workspace = true
39gpui_macros = { path = "../gpui_macros" }
40font-kit = { git = "https://github.com/zed-industries/font-kit", rev = "d97147f" }
41image = "0.23"
42itertools = "0.10"
43lazy_static.workspace = true
44linkme = "0.3"
45log.workspace = true
46num_cpus = "1.13"
47ordered-float.workspace = true
48parking = "2.0.0"
49parking_lot.workspace = true
50pathfinder_geometry = "0.5"
51postage.workspace = true
52rand.workspace = true
53raw-window-handle = "0.5.0"
54refineable.workspace = true
55resvg = "0.14"
56schemars.workspace = true
57seahash = "4.1"
58serde.workspace = true
59serde_derive.workspace = true
60serde_json.workspace = true
61slotmap = "1.0.6"
62smallvec.workspace = true
63smol.workspace = true
64sum_tree = { path = "../sum_tree" }
65taffy = { git = "https://github.com/DioxusLabs/taffy", rev = "1876f72bee5e376023eaa518aa7b8a34c769bd1b" }
66thiserror.workspace = true
67time.workspace = true
68tiny-skia = "0.5"
69usvg = { version = "0.14", features = [] }
70util = { path = "../util" }
71uuid = { version = "1.1.2", features = ["v4"] }
72waker-fn = "1.1.0"
73
74[dev-dependencies]
75backtrace = "0.3"
76collections = { path = "../collections", features = ["test-support"] }
77dhat = "0.3"
78env_logger.workspace = true
79png = "0.16"
80simplelog = "0.9"
81util = { path = "../util", features = ["test-support"] }
82
83[build-dependencies]
84bindgen = "0.65.1"
85cbindgen = "0.26.0"
86
87[target.'cfg(target_os = "macos")'.dependencies]
88block = "0.1"
89cocoa = "0.25"
90core-foundation = { version = "0.9.3", features = ["with-uuid"] }
91core-graphics = "0.22.3"
92core-text = "19.2"
93foreign-types = "0.3"
94log.workspace = true
95media = { path = "../media" }
96metal = "0.21.0"
97objc = "0.2"
98
99[target.'cfg(target_os = "linux")'.dependencies]
100flume = "0.11"
101xcb = { version = "1.3", features = ["as-raw-xcb-connection"] }
102as-raw-xcb-connection = "1"