| 1 | # THIS FILE IS AUTOMATICALLY GENERATED BY CARGO |
| 2 | # |
| 3 | # When uploading crates to the registry Cargo will automatically |
| 4 | # "normalize" Cargo.toml files for maximal compatibility |
| 5 | # with all versions of Cargo and also rewrite `path` dependencies |
| 6 | # to registry (e.g., crates.io) dependencies. |
| 7 | # |
| 8 | # If you are reading this file be aware that the original Cargo.toml |
| 9 | # will likely look very different (and much more reasonable). |
| 10 | # See Cargo.toml.orig for the original contents. |
| 11 | |
| 12 | [package] |
| 13 | edition = "2024" |
| 14 | name = "gpui-pre" |
| 15 | version = "0.3.8" |
| 16 | authors = ["Nathan Sobo <nathan@zed.dev>"] |
| 17 | build = "build.rs" |
| 18 | publish = true |
| 19 | autolib = false |
| 20 | autobins = false |
| 21 | autoexamples = false |
| 22 | autotests = false |
| 23 | autobenches = false |
| 24 | description = "Zed's GPU-accelerated UI framework (gpui-pre snapshot of zed@279fe07)" |
| 25 | homepage = "https://gpui.rs" |
| 26 | readme = "README.md" |
| 27 | keywords = [ |
| 28 | "desktop", |
| 29 | "gui", |
| 30 | "immediate", |
| 31 | ] |
| 32 | categories = ["gui"] |
| 33 | license = "Apache-2.0" |
| 34 | repository = "https://github.com/zed-industries/zed" |
| 35 | resolver = "2" |
| 36 | |
| 37 | [package.metadata.cargo-shear] |
| 38 | ignored = [ |
| 39 | "bindgen", |
| 40 | "font-kit", |
| 41 | "getrandom", |
| 42 | "objc2", |
| 43 | "objc2-metal", |
| 44 | ] |
| 45 | ignored-paths = ["src/_ownership_and_data_flow.rs"] |
| 46 | |
| 47 | [package.metadata.gpui-pre] |
| 48 | zed-crate = "gpui" |
| 49 | zed-version = "0.2.2" |
| 50 | zed-rev = "279fe070bb389b79652e52065b2f001edcc0b11b" |
| 51 | |
| 52 | [features] |
| 53 | bench = ["bench-support"] |
| 54 | bench-support = [ |
| 55 | "profiler", |
| 56 | "dep:criterion", |
| 57 | "dep:bench_metrics", |
| 58 | ] |
| 59 | default = [ |
| 60 | "font-kit", |
| 61 | "wayland", |
| 62 | "x11", |
| 63 | "windows-manifest", |
| 64 | ] |
| 65 | inspector = ["gpui_macros/inspector"] |
| 66 | leak-detection = [] |
| 67 | profiler = ["dep:hdrhistogram"] |
| 68 | screen-capture = ["scap"] |
| 69 | stacker = ["dep:stacksafe"] |
| 70 | test-support = [ |
| 71 | "collections/test-support", |
| 72 | "http_client/test-support", |
| 73 | "wayland", |
| 74 | "x11", |
| 75 | "proptest", |
| 76 | ] |
| 77 | wayland = [] |
| 78 | windows-manifest = ["dep:embed-resource"] |
| 79 | x11 = ["scap?/x11"] |
| 80 | |
| 81 | [lib] |
| 82 | name = "gpui" |
| 83 | path = "src/gpui.rs" |
| 84 | |
| 85 | [dependencies.accesskit] |
| 86 | version = "0.24.0" |
| 87 | features = ["enumn"] |
| 88 | |
| 89 | [dependencies.anyhow] |
| 90 | version = "1.0.86" |
| 91 | |
| 92 | [dependencies.async-task] |
| 93 | version = "4.7" |
| 94 | |
| 95 | [dependencies.backtrace] |
| 96 | version = "0.3" |
| 97 | |
| 98 | [dependencies.bench_metrics] |
| 99 | version = "=0.3.8" |
| 100 | optional = true |
| 101 | package = "gpui-pre-bench-metrics" |
| 102 | |
| 103 | [dependencies.bitflags] |
| 104 | version = "2.6.0" |
| 105 | |
| 106 | [dependencies.chrono] |
| 107 | version = "0.4" |
| 108 | features = ["serde"] |
| 109 | |
| 110 | [dependencies.collections] |
| 111 | version = "=0.3.8" |
| 112 | package = "gpui-pre-collections" |
| 113 | |
| 114 | [dependencies.criterion] |
| 115 | version = "0.8.2" |
| 116 | features = ["html_reports"] |
| 117 | optional = true |
| 118 | |
| 119 | [dependencies.ctor] |
| 120 | version = "1.0.12" |
| 121 | |
| 122 | [dependencies.derive_more] |
| 123 | version = "2.1.1" |
| 124 | features = [ |
| 125 | "add", |
| 126 | "add_assign", |
| 127 | "deref", |
| 128 | "deref_mut", |
| 129 | "display", |
| 130 | "from", |
| 131 | "from_str", |
| 132 | "mul", |
| 133 | "mul_assign", |
| 134 | "not", |
| 135 | ] |
| 136 | |
| 137 | [dependencies.etagere] |
| 138 | version = "0.2" |
| 139 | |
| 140 | [dependencies.futures] |
| 141 | version = "0.3.34" |
| 142 | |
| 143 | [dependencies.futures-concurrency] |
| 144 | version = "7.7.1" |
| 145 | |
| 146 | [dependencies.gpui_macros] |
| 147 | version = "=0.3.8" |
| 148 | package = "gpui-pre-macros" |
| 149 | |
| 150 | [dependencies.gpui_shared_string] |
| 151 | version = "=0.3.8" |
| 152 | package = "gpui-pre-shared-string" |
| 153 | |
| 154 | [dependencies.gpui_util] |
| 155 | version = "=0.3.8" |
| 156 | package = "gpui-pre-util" |
| 157 | |
| 158 | [dependencies.hdrhistogram] |
| 159 | version = "7" |
| 160 | optional = true |
| 161 | default-features = false |
| 162 | |
| 163 | [dependencies.heapless] |
| 164 | version = "0.9.2" |
| 165 | |
| 166 | [dependencies.http_client] |
| 167 | version = "=0.3.8" |
| 168 | package = "gpui-pre-http-client" |
| 169 | |
| 170 | [dependencies.image] |
| 171 | version = "0.25.1" |
| 172 | features = [ |
| 173 | "bmp", |
| 174 | "dds", |
| 175 | "exr", |
| 176 | "ff", |
| 177 | "gif", |
| 178 | "hdr", |
| 179 | "ico", |
| 180 | "jpeg", |
| 181 | "png", |
| 182 | "pnm", |
| 183 | "qoi", |
| 184 | "rayon", |
| 185 | "tga", |
| 186 | "tiff", |
| 187 | "webp", |
| 188 | ] |
| 189 | default-features = false |
| 190 | |
| 191 | [dependencies.inventory] |
| 192 | version = "0.3.19" |
| 193 | |
| 194 | [dependencies.itertools] |
| 195 | version = "0.14.0" |
| 196 | |
| 197 | [dependencies.log] |
| 198 | version = "0.4.16" |
| 199 | features = [ |
| 200 | "kv_unstable_serde", |
| 201 | "serde", |
| 202 | ] |
| 203 | |
| 204 | [dependencies.lyon] |
| 205 | version = "1.0" |
| 206 | |
| 207 | [dependencies.num_cpus] |
| 208 | version = "1.13" |
| 209 | |
| 210 | [dependencies.parking] |
| 211 | version = "2.0.0" |
| 212 | |
| 213 | [dependencies.parking_lot] |
| 214 | version = "0.12.1" |
| 215 | |
| 216 | [dependencies.pin-project] |
| 217 | version = "1.1.10" |
| 218 | |
| 219 | [dependencies.pollster] |
| 220 | version = "0.4.0" |
| 221 | |
| 222 | [dependencies.postage] |
| 223 | version = "0.5" |
| 224 | features = ["futures-traits"] |
| 225 | |
| 226 | [dependencies.profiling] |
| 227 | version = "1" |
| 228 | |
| 229 | [dependencies.proptest] |
| 230 | version = "1" |
| 231 | features = ["attr-macro"] |
| 232 | optional = true |
| 233 | package = "proptest" |
| 234 | |
| 235 | [dependencies.rand] |
| 236 | version = "0.9" |
| 237 | |
| 238 | [dependencies.raw-window-handle] |
| 239 | version = "0.6" |
| 240 | |
| 241 | [dependencies.refineable] |
| 242 | version = "=0.3.8" |
| 243 | package = "gpui-pre-refineable" |
| 244 | |
| 245 | [dependencies.regex] |
| 246 | version = "1.5" |
| 247 | |
| 248 | [dependencies.resvg] |
| 249 | version = "0.46.0" |
| 250 | features = [ |
| 251 | "text", |
| 252 | "system-fonts", |
| 253 | "memmap-fonts", |
| 254 | "raster-images", |
| 255 | ] |
| 256 | default-features = false |
| 257 | |
| 258 | [dependencies.scheduler] |
| 259 | version = "=0.3.8" |
| 260 | package = "gpui-pre-scheduler" |
| 261 | |
| 262 | [dependencies.schemars] |
| 263 | version = "1.0" |
| 264 | features = ["indexmap2"] |
| 265 | |
| 266 | [dependencies.seahash] |
| 267 | version = "4.1" |
| 268 | |
| 269 | [dependencies.serde] |
| 270 | version = "1.0.221" |
| 271 | features = [ |
| 272 | "derive", |
| 273 | "rc", |
| 274 | ] |
| 275 | |
| 276 | [dependencies.serde_json] |
| 277 | version = "1.0.144" |
| 278 | features = [ |
| 279 | "preserve_order", |
| 280 | "raw_value", |
| 281 | ] |
| 282 | |
| 283 | [dependencies.slotmap] |
| 284 | version = "1.0.6" |
| 285 | |
| 286 | [dependencies.smallvec] |
| 287 | version = "1.6" |
| 288 | features = [ |
| 289 | "union", |
| 290 | "const_new", |
| 291 | ] |
| 292 | |
| 293 | [dependencies.spin] |
| 294 | version = "0.10.0" |
| 295 | |
| 296 | [dependencies.stacksafe] |
| 297 | version = "1.0" |
| 298 | optional = true |
| 299 | |
| 300 | [dependencies.strum] |
| 301 | version = "0.28" |
| 302 | features = ["derive"] |
| 303 | |
| 304 | [dependencies.sum_tree] |
| 305 | version = "=0.3.8" |
| 306 | package = "gpui-pre-sum-tree" |
| 307 | |
| 308 | [dependencies.taffy] |
| 309 | version = "0.13.0" |
| 310 | |
| 311 | [dependencies.thiserror] |
| 312 | version = "2.0.12" |
| 313 | |
| 314 | [dependencies.ttf-parser] |
| 315 | version = "0.25" |
| 316 | |
| 317 | [dependencies.url] |
| 318 | version = "2.2" |
| 319 | |
| 320 | [dependencies.usvg] |
| 321 | version = "0.46.0" |
| 322 | default-features = false |
| 323 | |
| 324 | [dependencies.util_macros] |
| 325 | version = "=0.3.8" |
| 326 | package = "gpui-pre-util-macros" |
| 327 | |
| 328 | [dependencies.uuid] |
| 329 | version = "1.1.2" |
| 330 | features = [ |
| 331 | "v4", |
| 332 | "v5", |
| 333 | "v7", |
| 334 | "serde", |
| 335 | ] |
| 336 | |
| 337 | [dependencies.waker-fn] |
| 338 | version = "1.2.0" |
| 339 | |
| 340 | [dependencies.web-time] |
| 341 | version = "1.1.0" |
| 342 | |
| 343 | [build-dependencies.embed-resource] |
| 344 | version = "3.0" |
| 345 | optional = true |
| 346 | |
| 347 | [target.'cfg(all(target_arch = "wasm32", target_os = "unknown"))'.dependencies.async-channel] |
| 348 | version = "2.5.0" |
| 349 | default-features = false |
| 350 | |
| 351 | [target.'cfg(any(target_os = "linux", target_os = "android"))'.dependencies.libc] |
| 352 | version = "0.2" |
| 353 | |
| 354 | [target.'cfg(any(target_os = "linux", target_os = "freebsd", target_os = "windows"))'.dependencies.scap] |
| 355 | version = "0.0.8-zed" |
| 356 | optional = true |
| 357 | default-features = false |
| 358 | package = "zed-scap" |
| 359 | |
| 360 | [target.'cfg(any(target_os = "macos", target_os = "ios"))'.dependencies.core-video] |
| 361 | version = "0.5.2" |
| 362 | features = ["metal"] |
| 363 | |
| 364 | [target.'cfg(not(all(target_arch = "wasm32", target_os = "unknown")))'.dependencies.async-channel] |
| 365 | version = "2.5.0" |
| 366 | |
| 367 | [target.'cfg(target_family = "wasm")'.dependencies.getrandom] |
| 368 | version = "0.3.4" |
| 369 | features = ["wasm_js"] |
| 370 | |
| 371 | [target.'cfg(target_family = "wasm")'.dependencies.uuid] |
| 372 | version = "1.1.2" |
| 373 | features = [ |
| 374 | "v4", |
| 375 | "v5", |
| 376 | "v7", |
| 377 | "serde", |
| 378 | "js", |
| 379 | ] |
| 380 | |
| 381 | [target.'cfg(target_os = "macos")'.dependencies.font-kit] |
| 382 | version = "0.14.1-zed" |
| 383 | optional = true |
| 384 | package = "zed-font-kit" |
| 385 | |
| 386 | [target.'cfg(target_os = "macos")'.dependencies.log] |
| 387 | version = "0.4.16" |
| 388 | features = [ |
| 389 | "kv_unstable_serde", |
| 390 | "serde", |
| 391 | ] |
| 392 | |
| 393 | [target.'cfg(target_os = "macos")'.dependencies.objc2] |
| 394 | version = "0.6" |
| 395 | optional = true |
| 396 | |
| 397 | [target.'cfg(target_os = "macos")'.dependencies.objc2-core-foundation] |
| 398 | version = "0.3.2" |
| 399 | default-features = false |
| 400 | |
| 401 | [target.'cfg(target_os = "macos")'.dependencies.objc2-core-video] |
| 402 | version = "0.3.2" |
| 403 | features = [ |
| 404 | "CVBuffer", |
| 405 | "CVImageBuffer", |
| 406 | ] |
| 407 | default-features = false |
| 408 | |
| 409 | [target.'cfg(target_os = "macos")'.dependencies.objc2-metal] |
| 410 | version = "0.3" |
| 411 | optional = true |
| 412 | |
| 413 | [target.'cfg(target_os = "macos")'.build-dependencies.bindgen] |
| 414 | version = "0.72" |
| 415 | |
| 416 | [target.'cfg(target_os = "windows")'.dependencies.windows] |
| 417 | version = "0.62" |
| 418 | features = [ |
| 419 | "Data_Xml_Dom", |
| 420 | "Foundation_Numerics", |
| 421 | "Globalization_DateTimeFormatting", |
| 422 | "Storage_Search", |
| 423 | "Storage_Streams", |
| 424 | "System_Threading", |
| 425 | "UI_Notifications", |
| 426 | "UI_ViewManagement", |
| 427 | "Wdk_System_SystemServices", |
| 428 | "Win32_Foundation", |
| 429 | "Win32_Globalization", |
| 430 | "Win32_Graphics_Direct3D", |
| 431 | "Win32_Graphics_Direct3D11", |
| 432 | "Win32_Graphics_Direct3D_Fxc", |
| 433 | "Win32_Graphics_DirectComposition", |
| 434 | "Win32_Graphics_DirectWrite", |
| 435 | "Win32_Graphics_DirectManipulation", |
| 436 | "Win32_Graphics_Dwm", |
| 437 | "Win32_Graphics_Dxgi", |
| 438 | "Win32_Graphics_Dxgi_Common", |
| 439 | "Win32_Graphics_Gdi", |
| 440 | "Win32_Graphics_Imaging", |
| 441 | "Win32_Graphics_Hlsl", |
| 442 | "Win32_Networking_WinSock", |
| 443 | "Win32_Security", |
| 444 | "Win32_Security_Credentials", |
| 445 | "Win32_Security_Cryptography", |
| 446 | "Win32_Storage_FileSystem", |
| 447 | "Win32_Storage_Packaging_Appx", |
| 448 | "Win32_System_Com", |
| 449 | "Win32_System_Com_StructuredStorage", |
| 450 | "Win32_System_Console", |
| 451 | "Win32_System_Diagnostics_Debug", |
| 452 | "Win32_System_DataExchange", |
| 453 | "Win32_System_IO", |
| 454 | "Win32_System_JobObjects", |
| 455 | "Win32_System_LibraryLoader", |
| 456 | "Win32_System_Memory", |
| 457 | "Win32_System_Ole", |
| 458 | "Win32_System_Performance", |
| 459 | "Win32_System_Pipes", |
| 460 | "Win32_System_Power", |
| 461 | "Win32_System_RestartManager", |
| 462 | "Win32_System_SystemInformation", |
| 463 | "Win32_System_SystemServices", |
| 464 | "Win32_System_Threading", |
| 465 | "Win32_System_Variant", |
| 466 | "Win32_System_WinRT", |
| 467 | "Win32_UI_Controls", |
| 468 | "Win32_UI_HiDpi", |
| 469 | "Win32_UI_Input_Ime", |
| 470 | "Win32_UI_Input_KeyboardAndMouse", |
| 471 | "Win32_UI_Input_Pointer", |
| 472 | "Win32_UI_Shell", |
| 473 | "Win32_UI_Shell_Common", |
| 474 | "Win32_UI_Shell_PropertiesSystem", |
| 475 | "Win32_UI_WindowsAndMessaging", |
| 476 | "Win32_Media", |
| 477 | "Win32_Foundation", |
| 478 | "Win32_System_Power", |
| 479 | "Win32_System_RemoteDesktop", |
| 480 | "Win32_System_Threading", |
| 481 | "Win32_System_WindowsProgramming", |
| 482 | ] |
| 483 | |
| 484 | [lints.clippy] |
| 485 | dbg_macro = "deny" |
| 486 | declare_interior_mutable_const = "deny" |
| 487 | disallowed_methods = "deny" |
| 488 | large_enum_variant = "allow" |
| 489 | let_underscore_future = "allow" |
| 490 | nonminimal_bool = "allow" |
| 491 | redundant_clone = "deny" |
| 492 | single_range_in_vec_init = "allow" |
| 493 | todo = "deny" |
| 494 | too_many_arguments = "allow" |
| 495 | type_complexity = "allow" |
| 496 | |
| 497 | [lints.clippy.style] |
| 498 | level = "allow" |
| 499 | priority = -1 |
| 500 | |
| 501 | [lints.rust.unexpected_cfgs] |
| 502 | level = "allow" |
| 503 | priority = 0 |