Cargo.toml

  1[package]
  2name = "gpui"
  3version = "0.2.2"
  4edition.workspace = true
  5authors = ["Nathan Sobo <nathan@zed.dev>"]
  6description = "Zed's GPU-accelerated UI framework"
  7repository = "https://github.com/zed-industries/zed"
  8publish = true
  9license = "Apache-2.0"
 10homepage = "https://gpui.rs"
 11readme = "README.md"
 12keywords = ["desktop", "gui", "immediate"]
 13categories = ["gui"]
 14
 15
 16[lints]
 17workspace = true
 18
 19[features]
 20default = ["font-kit", "wayland", "x11", "windows-manifest"]
 21test-support = [
 22    "leak-detection",
 23    "collections/test-support",
 24    "http_client/test-support",
 25    "wayland",
 26    "x11",
 27    "proptest",
 28]
 29inspector = ["gpui_macros/inspector"]
 30leak-detection = ["backtrace"]
 31wayland = [
 32    "bitflags",
 33]
 34x11 = [
 35    "scap?/x11",
 36]
 37screen-capture = [
 38    "scap",
 39]
 40windows-manifest = ["dep:embed-resource"]
 41
 42[lib]
 43path = "src/gpui.rs"
 44doctest = false
 45
 46[dependencies]
 47accesskit.workspace = true
 48anyhow.workspace = true
 49async-task = "4.7"
 50backtrace = { workspace = true, optional = true }
 51bitflags = { workspace = true, optional = true }
 52
 53collections.workspace = true
 54ctor.workspace = true
 55derive_more.workspace = true
 56etagere = "0.2"
 57futures.workspace = true
 58futures-concurrency.workspace = true
 59gpui_macros.workspace = true
 60http_client.workspace = true
 61image.workspace = true
 62inventory.workspace = true
 63itertools.workspace = true
 64log.workspace = true
 65num_cpus = "1.13"
 66parking = "2.0.0"
 67parking_lot.workspace = true
 68postage.workspace = true
 69proptest = { workspace = true, optional = true }
 70chrono.workspace = true
 71profiling.workspace = true
 72rand.workspace = true
 73raw-window-handle = "0.6"
 74refineable.workspace = true
 75scheduler.workspace = true
 76resvg = { version = "0.45.0", default-features = false, features = [
 77    "text",
 78    "system-fonts",
 79    "memmap-fonts",
 80] }
 81usvg = { version = "0.45.0", default-features = false }
 82util_macros.workspace = true
 83schemars.workspace = true
 84seahash = "4.1"
 85serde.workspace = true
 86serde_json.workspace = true
 87slotmap.workspace = true
 88smallvec.workspace = true
 89async-channel.workspace = true
 90stacksafe.workspace = true
 91strum.workspace = true
 92sum_tree.workspace = true
 93taffy = "=0.9.0"
 94thiserror.workspace = true
 95gpui_util.workspace = true
 96waker-fn = "1.2.0"
 97lyon = "1.0"
 98pin-project = "1.1.10"
 99circular-buffer.workspace = true
100spin = "0.10.0"
101pollster.workspace = true
102url.workspace = true
103uuid.workspace = true
104web-time.workspace = true
105
106[target.'cfg(target_family = "wasm")'.dependencies]
107getrandom = { version = "0.3.4", features = ["wasm_js"] }
108uuid = { workspace = true, features = ["js"] }
109
110
111[target.'cfg(target_os = "macos")'.dependencies]
112block = "0.1"
113cocoa.workspace = true
114cocoa-foundation.workspace = true
115core-foundation.workspace = true
116core-foundation-sys.workspace = true
117core-graphics = "0.24"
118core-video.workspace = true
119core-text = "21"
120# WARNING: If you change this, you must also publish a new version of zed-font-kit to crates.io
121font-kit = { git = "https://github.com/zed-industries/font-kit", rev = "110523127440aefb11ce0cf280ae7c5071337ec5", package = "zed-font-kit", version = "0.14.1-zed", optional = true }
122foreign-types = "0.5"
123log.workspace = true
124media.workspace = true
125objc.workspace = true
126objc2 = { version = "0.6", optional = true }
127objc2-metal = { version = "0.3", optional = true }
128mach2.workspace = true
129#TODO: replace with "objc2"
130metal.workspace = true
131
132[target.'cfg(any(target_os = "linux", target_os = "freebsd", target_os = "macos"))'.dependencies]
133pathfinder_geometry = "0.5"
134
135[target.'cfg(any(target_os = "linux", target_os = "freebsd", target_os = "windows"))'.dependencies]
136scap = { workspace = true, optional = true }
137
138
139
140[target.'cfg(target_os = "windows")'.dependencies]
141windows = { version = "0.61", features = ["Win32_Foundation"] }
142
143
144[dev-dependencies]
145backtrace.workspace = true
146collections = { workspace = true, features = ["test-support"] }
147env_logger.workspace = true
148gpui_platform.workspace = true
149lyon = { version = "1.0", features = ["extra"] }
150rand.workspace = true
151scheduler = { workspace = true, features = ["test-support"] }
152unicode-segmentation.workspace = true
153gpui_util = { workspace = true }
154proptest = { workspace = true }
155
156[target.'cfg(not(target_family = "wasm"))'.dev-dependencies]
157http_client = { workspace = true, features = ["test-support"] }
158reqwest_client = { workspace = true, features = ["test-support"] }
159
160[target.'cfg(target_family = "wasm")'.dev-dependencies]
161wasm-bindgen = { workspace = true }
162gpui_web.workspace = true
163
164[build-dependencies]
165embed-resource = { version = "3.0", optional = true }
166
167[target.'cfg(target_os = "macos")'.build-dependencies]
168bindgen = "0.71"
169cbindgen = { version = "0.28.0", default-features = false }
170naga.workspace = true
171
172
173
174
175[[example]]
176name = "a11y"
177path = "examples/a11y.rs"
178
179[[example]]
180name = "hello_world"
181path = "examples/hello_world.rs"
182
183[[example]]
184name = "image"
185path = "examples/image/image.rs"
186
187[[example]]
188name = "input"
189path = "examples/input.rs"
190
191[[example]]
192name = "on_window_close_quit"
193path = "examples/on_window_close_quit.rs"
194
195[[example]]
196name = "opacity"
197path = "examples/opacity.rs"
198
199[[example]]
200name = "pattern"
201path = "examples/pattern.rs"
202
203[[example]]
204name = "set_menus"
205path = "examples/set_menus.rs"
206
207[[example]]
208name = "shadow"
209path = "examples/shadow.rs"
210
211[[example]]
212name = "svg"
213path = "examples/svg/svg.rs"
214
215[[example]]
216name = "tab_stop"
217path = "examples/tab_stop.rs"
218
219[[example]]
220name = "text"
221path = "examples/text.rs"
222
223[[example]]
224name = "text_wrapper"
225path = "examples/text_wrapper.rs"
226
227[[example]]
228name = "tree"
229path = "examples/tree.rs"
230
231[[example]]
232name = "uniform_list"
233path = "examples/uniform_list.rs"
234
235[[example]]
236name = "window_shadow"
237path = "examples/window_shadow.rs"
238
239[[example]]
240name = "grid_layout"
241path = "examples/grid_layout.rs"
242
243[[example]]
244name = "mouse_pressure"
245path = "examples/mouse_pressure.rs"