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