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
54profiling.workspace = true
55rand.workspace = true
56raw-window-handle = "0.6"
57refineable.workspace = true
58resvg = "0.14"
59schemars.workspace = true
60seahash = "4.1"
61serde.workspace = true
62serde_derive.workspace = true
63serde_json.workspace = true
64slotmap = "1.0.6"
65smallvec.workspace = true
66smol.workspace = true
67sum_tree.workspace = true
68taffy = { git = "https://github.com/DioxusLabs/taffy", rev = "1876f72bee5e376023eaa518aa7b8a34c769bd1b" }
69thiserror.workspace = true
70time.workspace = true
71tiny-skia = "0.5"
72usvg = { version = "0.14", features = [] }
73util.workspace = true
74uuid = { version = "1.1.2", features = ["v4"] }
75waker-fn = "1.1.0"
76
77[dev-dependencies]
78backtrace = "0.3"
79collections = { workspace = true, features = ["test-support"] }
80dhat = "0.3"
81env_logger.workspace = true
82png = "0.16"
83simplelog = "0.9"
84util = { workspace = true, features = ["test-support"] }
85
86[build-dependencies]
87bindgen = "0.65.1"
88cbindgen = "0.26.0"
89
90[target.'cfg(target_os = "macos")'.dependencies]
91block = "0.1"
92cocoa = "0.25"
93core-foundation.workspace = true
94core-graphics = "0.23"
95core-text = "20.1"
96foreign-types = "0.5"
97log.workspace = true
98media.workspace = true
99metal = "0.25"
100objc = "0.2"
101
102[target.'cfg(target_os = "linux")'.dependencies]
103flume = "0.11"
104open = "5.0.1"
105ashpd = "0.7.0"
106# todo!(linux) - Technically do not use `randr`, but it doesn't compile otherwise
107xcb = { version = "1.3", features = ["as-raw-xcb-connection", "present", "randr", "xkb"] }
108wayland-client= { version = "0.31.2" }
109wayland-protocols = { version = "0.31.2", features = ["client", "staging", "unstable"] }
110wayland-backend = { version = "0.3.3", features = ["client_system"] }
111xkbcommon = { version = "0.7", features = ["wayland", "x11"] }
112as-raw-xcb-connection = "1"
113#TODO: use these on all platforms
114blade-graphics.workspace = true
115blade-macros.workspace = true
116blade-rwh.workspace = true
117bytemuck = "1"
118cosmic-text = "0.10.0"
119
120[[example]]
121name = "hello_world"
122path = "examples/hello_world.rs"
123
124[[example]]
125name = "image"
126path = "examples/image/image.rs"