Cargo.toml

  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    "http_client/test-support",
 20]
 21runtime_shaders = []
 22macos-blade = ["blade-graphics", "blade-macros", "blade-util", "bytemuck"]
 23
 24[lib]
 25path = "src/gpui.rs"
 26doctest = false
 27
 28[dependencies]
 29anyhow.workspace = true
 30async-task = "4.7"
 31backtrace = { version = "0.3", optional = true }
 32blade-graphics = { workspace = true, optional = true }
 33blade-macros = { workspace = true, optional = true }
 34blade-util = { workspace = true, optional = true }
 35bytemuck = { version = "1", optional = true }
 36collections.workspace = true
 37ctor.workspace = true
 38derive_more.workspace = true
 39env_logger.workspace = true
 40etagere = "0.2"
 41futures.workspace = true
 42gpui_macros.workspace = true
 43http_client.workspace = true
 44image = "0.25.1"
 45itertools.workspace = true
 46lazy_static.workspace = true
 47linkme = "0.3"
 48log.workspace = true
 49num_cpus = "1.13"
 50parking = "2.0.0"
 51parking_lot.workspace = true
 52postage.workspace = true
 53profiling.workspace = true
 54rand.workspace = true
 55raw-window-handle = "0.6"
 56refineable.workspace = true
 57resvg = { version = "0.41.0", default-features = false }
 58usvg = { version = "0.41.0", default-features = false }
 59schemars.workspace = true
 60seahash = "4.1"
 61semantic_version.workspace = true
 62serde.workspace = true
 63serde_derive.workspace = true
 64serde_json.workspace = true
 65slotmap = "1.0.6"
 66smallvec.workspace = true
 67smol.workspace = true
 68strum.workspace = true
 69sum_tree.workspace = true
 70taffy = "0.4.3"
 71thiserror.workspace = true
 72time.workspace = true
 73util.workspace = true
 74uuid.workspace = true
 75waker-fn = "1.2.0"
 76
 77[dev-dependencies]
 78backtrace = "0.3"
 79collections = { workspace = true, features = ["test-support"] }
 80util = { workspace = true, features = ["test-support"] }
 81http_client = { workspace = true, features = ["test-support"] }
 82unicode-segmentation.workspace = true
 83
 84[build-dependencies]
 85embed-resource = "2.4"
 86
 87[target.'cfg(target_os = "macos")'.build-dependencies]
 88bindgen = "0.65.1"
 89cbindgen = { version = "0.26.0", default-features = false }
 90
 91[target.'cfg(target_os = "macos")'.dependencies]
 92block = "0.1"
 93cocoa.workspace = true
 94core-foundation.workspace = true
 95core-foundation-sys = "0.8"
 96core-graphics = "0.23"
 97core-text = "20.1"
 98font-kit = { git = "https://github.com/zed-industries/font-kit", rev = "40391b7" }
 99foreign-types = "0.5"
100log.workspace = true
101media.workspace = true
102metal = "0.29"
103objc = "0.2"
104
105[target.'cfg(any(target_os = "linux", target_os = "macos"))'.dependencies]
106pathfinder_geometry = "0.5"
107
108[target.'cfg(any(target_os = "linux", target_os = "windows"))'.dependencies]
109blade-graphics.workspace = true
110blade-macros.workspace = true
111blade-util.workspace = true
112bytemuck = "1"
113
114[target.'cfg(target_os = "linux")'.dependencies]
115as-raw-xcb-connection = "1"
116ashpd.workspace = true
117calloop = "0.13.0"
118calloop-wayland-source = "0.3.0"
119cosmic-text = { git = "https://github.com/pop-os/cosmic-text", rev = "542b20c" }
120flume = "0.11"
121wayland-backend = { version = "0.3.3", features = ["client_system", "dlopen"] }
122wayland-client = { version = "0.31.2" }
123wayland-cursor = "0.31.1"
124wayland-protocols = { version = "0.31.2", features = [
125    "client",
126    "staging",
127    "unstable",
128] }
129wayland-protocols-plasma = { version = "0.2.0", features = ["client"] }
130oo7 = "0.3.0"
131open = "5.2.0"
132filedescriptor = "0.8.2"
133x11rb = { version = "0.13.0", features = [
134    "allow-unsafe-code",
135    "xkb",
136    "randr",
137    "xinput",
138    "cursor",
139    "resource_manager",
140    "sync",
141] }
142xkbcommon = { git = "https://github.com/ConradIrwin/xkbcommon-rs", rev = "fcbb4612185cc129ceeff51d22f7fb51810a03b2", features = [
143    "wayland",
144    "x11",
145] }
146xim = { git = "https://github.com/npmania/xim-rs", rev = "27132caffc5b9bc9c432ca4afad184ab6e7c16af", features = [
147    "x11rb-xcb",
148    "x11rb-client",
149] }
150font-kit = { git = "https://github.com/zed-industries/font-kit", rev = "40391b7", features = [
151    "source-fontconfig-dlopen",
152] }
153x11-clipboard = "0.9.2"
154
155[target.'cfg(windows)'.dependencies]
156windows.workspace = true
157windows-core = "0.58"
158
159[[example]]
160name = "hello_world"
161path = "examples/hello_world.rs"
162
163[[example]]
164name = "image"
165path = "examples/image/image.rs"
166
167[[example]]
168name = "set_menus"
169path = "examples/set_menus.rs"
170
171[[example]]
172name = "window_shadow"
173path = "examples/window_shadow.rs"
174
175[[example]]
176name = "input"
177path = "examples/input.rs"
178
179[[example]]
180name = "shadow"
181path = "examples/shadow.rs"