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