edith
Clone
https://git.tahinli.com/Tahinli/edith.git
0 watching0 forksRust18.3 MiBff99ad6Tahinli6 days ago1055 commits
| 1 | [package] |
| 2 | name = "gpui" |
| 3 | version = "0.2.2" |
| 4 | edition.workspace = true |
| 5 | authors = ["Nathan Sobo <nathan@zed.dev>"] |
| 6 | description = "Zed's GPU-accelerated UI framework" |
| 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 | |
| 16 | [lints] |
| 17 | workspace = true |
| 18 | |
| 19 | [features] |
| 20 | default = ["font-kit", "wayland", "x11", "windows-manifest"] |
| 21 | test-support = [ |
| 22 | "leak-detection", |
| 23 | "collections/test-support", |
| 24 | "rand", |
| 25 | "util/test-support", |
| 26 | "http_client/test-support", |
| 27 | "wayland", |
| 28 | "x11", |
| 29 | ] |
| 30 | inspector = ["gpui_macros/inspector"] |
| 31 | leak-detection = ["backtrace"] |
| 32 | runtime_shaders = [] |
| 33 | macos-blade = [ |
| 34 | "blade-graphics", |
| 35 | "blade-macros", |
| 36 | "blade-util", |
| 37 | "bytemuck", |
| 38 | "objc2", |
| 39 | "objc2-metal", |
| 40 | ] |
| 41 | wayland = [ |
| 42 | "blade-graphics", |
| 43 | "blade-macros", |
| 44 | "blade-util", |
| 45 | "bytemuck", |
| 46 | "ashpd/wayland", |
| 47 | "cosmic-text", |
| 48 | "font-kit", |
| 49 | "calloop-wayland-source", |
| 50 | "wayland-backend", |
| 51 | "wayland-client", |
| 52 | "wayland-cursor", |
| 53 | "wayland-protocols", |
| 54 | "wayland-protocols-plasma", |
| 55 | "filedescriptor", |
| 56 | "xkbcommon", |
| 57 | "open", |
| 58 | ] |
| 59 | x11 = [ |
| 60 | "blade-graphics", |
| 61 | "blade-macros", |
| 62 | "blade-util", |
| 63 | "bytemuck", |
| 64 | "ashpd", |
| 65 | "cosmic-text", |
| 66 | "font-kit", |
| 67 | "as-raw-xcb-connection", |
| 68 | "x11rb", |
| 69 | "xkbcommon", |
| 70 | "xim", |
| 71 | "x11-clipboard", |
| 72 | "filedescriptor", |
| 73 | "open", |
| 74 | "scap?/x11", |
| 75 | ] |
| 76 | screen-capture = [ |
| 77 | "scap", |
| 78 | ] |
| 79 | windows-manifest = [] |
| 80 | |
| 81 | [lib] |
| 82 | path = "src/gpui.rs" |
| 83 | doctest = false |
| 84 | |
| 85 | [dependencies] |
| 86 | anyhow.workspace = true |
| 87 | async-task = "4.7" |
| 88 | backtrace = { version = "0.3", optional = true } |
| 89 | blade-graphics = { workspace = true, optional = true } |
| 90 | blade-macros = { workspace = true, optional = true } |
| 91 | blade-util = { workspace = true, optional = true } |
| 92 | bytemuck = { version = "1", optional = true } |
| 93 | collections.workspace = true |
| 94 | ctor.workspace = true |
| 95 | derive_more.workspace = true |
| 96 | etagere = "0.2" |
| 97 | futures.workspace = true |
| 98 | gpui_macros.workspace = true |
| 99 | http_client.workspace = true |
| 100 | image.workspace = true |
| 101 | inventory.workspace = true |
| 102 | itertools.workspace = true |
| 103 | log.workspace = true |
| 104 | num_cpus = "1.13" |
| 105 | parking = "2.0.0" |
| 106 | parking_lot.workspace = true |
| 107 | postage.workspace = true |
| 108 | profiling.workspace = true |
| 109 | rand = { optional = true, workspace = true } |
| 110 | raw-window-handle = "0.6" |
| 111 | refineable.workspace = true |
| 112 | resvg = { version = "0.45.0", default-features = false, features = [ |
| 113 | "text", |
| 114 | "system-fonts", |
| 115 | "memmap-fonts", |
| 116 | ] } |
| 117 | usvg = { version = "0.45.0", default-features = false } |
| 118 | util_macros.workspace = true |
| 119 | schemars.workspace = true |
| 120 | seahash = "4.1" |
| 121 | semantic_version.workspace = true |
| 122 | serde.workspace = true |
| 123 | serde_json.workspace = true |
| 124 | slotmap.workspace = true |
| 125 | smallvec.workspace = true |
| 126 | smol.workspace = true |
| 127 | stacksafe.workspace = true |
| 128 | strum.workspace = true |
| 129 | sum_tree.workspace = true |
| 130 | taffy = "=0.9.0" |
| 131 | thiserror.workspace = true |
| 132 | util.workspace = true |
| 133 | uuid.workspace = true |
| 134 | waker-fn = "1.2.0" |
| 135 | lyon = "1.0" |
| 136 | libc.workspace = true |
| 137 | pin-project = "1.1.10" |
| 138 | |
| 139 | [target.'cfg(target_os = "macos")'.dependencies] |
| 140 | block = "0.1" |
| 141 | cocoa.workspace = true |
| 142 | cocoa-foundation.workspace = true |
| 143 | core-foundation.workspace = true |
| 144 | core-foundation-sys.workspace = true |
| 145 | core-graphics = "0.24" |
| 146 | core-video.workspace = true |
| 147 | core-text = "21" |
| 148 | # WARNING: If you change this, you must also publish a new version of zed-font-kit to crates.io |
| 149 | font-kit = { git = "https://github.com/zed-industries/font-kit", rev = "110523127440aefb11ce0cf280ae7c5071337ec5", package = "zed-font-kit", version = "0.14.1-zed", optional = true } |
| 150 | foreign-types = "0.5" |
| 151 | log.workspace = true |
| 152 | media.workspace = true |
| 153 | objc.workspace = true |
| 154 | objc2 = { version = "0.6", optional = true } |
| 155 | objc2-metal = { version = "0.3", optional = true } |
| 156 | #TODO: replace with "objc2" |
| 157 | metal.workspace = true |
| 158 | |
| 159 | [target.'cfg(any(target_os = "linux", target_os = "freebsd", target_os = "macos"))'.dependencies] |
| 160 | pathfinder_geometry = "0.5" |
| 161 | |
| 162 | [target.'cfg(any(target_os = "linux", target_os = "freebsd", target_os = "windows"))'.dependencies] |
| 163 | scap = { workspace = true, optional = true } |
| 164 | |
| 165 | [target.'cfg(any(target_os = "linux", target_os = "freebsd"))'.dependencies] |
| 166 | # Always used |
| 167 | flume = "0.11" |
| 168 | oo7 = { version = "0.5.0", default-features = false, features = [ |
| 169 | "async-std", |
| 170 | "native_crypto", |
| 171 | ] } |
| 172 | |
| 173 | # Used in both windowing options |
| 174 | ashpd = { workspace = true, optional = true } |
| 175 | blade-graphics = { workspace = true, optional = true } |
| 176 | blade-macros = { workspace = true, optional = true } |
| 177 | blade-util = { workspace = true, optional = true } |
| 178 | bytemuck = { version = "1", optional = true } |
| 179 | cosmic-text = { version = "0.14.0", optional = true } |
| 180 | # WARNING: If you change this, you must also publish a new version of zed-font-kit to crates.io |
| 181 | font-kit = { git = "https://github.com/zed-industries/font-kit", rev = "110523127440aefb11ce0cf280ae7c5071337ec5", package = "zed-font-kit", version = "0.14.1-zed", features = [ |
| 182 | "source-fontconfig-dlopen", |
| 183 | ], optional = true } |
| 184 | |
| 185 | calloop = { version = "0.13.0" } |
| 186 | filedescriptor = { version = "0.8.2", optional = true } |
| 187 | open = { version = "5.2.0", optional = true } |
| 188 | |
| 189 | # Wayland |
| 190 | calloop-wayland-source = { version = "0.3.0", optional = true } |
| 191 | wayland-backend = { version = "0.3.3", features = [ |
| 192 | "client_system", |
| 193 | "dlopen", |
| 194 | ], optional = true } |
| 195 | wayland-client = { version = "0.31.2", optional = true } |
| 196 | wayland-cursor = { version = "0.31.1", optional = true } |
| 197 | wayland-protocols = { version = "0.31.2", features = [ |
| 198 | "client", |
| 199 | "staging", |
| 200 | "unstable", |
| 201 | ], optional = true } |
| 202 | wayland-protocols-plasma = { version = "0.2.0", features = [ |
| 203 | "client", |
| 204 | ], optional = true } |
| 205 | |
| 206 | # X11 |
| 207 | as-raw-xcb-connection = { version = "1", optional = true } |
| 208 | x11rb = { version = "0.13.1", features = [ |
| 209 | "allow-unsafe-code", |
| 210 | "xkb", |
| 211 | "randr", |
| 212 | "xinput", |
| 213 | "cursor", |
| 214 | "resource_manager", |
| 215 | "sync", |
| 216 | ], optional = true } |
| 217 | xkbcommon = { version = "0.8.0", features = [ |
| 218 | "wayland", |
| 219 | "x11", |
| 220 | ], optional = true } |
| 221 | # WARNING: If you change this, you must also publish a new version of zed-xim to crates.io |
| 222 | xim = { git = "https://github.com/zed-industries/xim-rs.git", rev = "16f35a2c881b815a2b6cdfd6687988e84f8447d8" , features = [ |
| 223 | "x11rb-xcb", |
| 224 | "x11rb-client", |
| 225 | ], package = "zed-xim", version = "0.4.0-zed", optional = true } |
| 226 | x11-clipboard = { version = "0.9.3", optional = true } |
| 227 | |
| 228 | [target.'cfg(target_os = "windows")'.dependencies] |
| 229 | flume = "0.11" |
| 230 | rand.workspace = true |
| 231 | windows.workspace = true |
| 232 | windows-core.workspace = true |
| 233 | windows-numerics = "0.2" |
| 234 | windows-registry = "0.5" |
| 235 | |
| 236 | [dev-dependencies] |
| 237 | backtrace = "0.3" |
| 238 | collections = { workspace = true, features = ["test-support"] } |
| 239 | env_logger.workspace = true |
| 240 | http_client = { workspace = true, features = ["test-support"] } |
| 241 | lyon = { version = "1.0", features = ["extra"] } |
| 242 | pretty_assertions.workspace = true |
| 243 | rand.workspace = true |
| 244 | reqwest_client = { workspace = true, features = ["test-support"] } |
| 245 | unicode-segmentation.workspace = true |
| 246 | util = { workspace = true, features = ["test-support"] } |
| 247 | |
| 248 | [target.'cfg(target_os = "windows")'.build-dependencies] |
| 249 | embed-resource = "3.0" |
| 250 | |
| 251 | [target.'cfg(target_os = "macos")'.build-dependencies] |
| 252 | bindgen = "0.71" |
| 253 | cbindgen = { version = "0.28.0", default-features = false } |
| 254 | naga.workspace = true |
| 255 | |
| 256 | [target.'cfg(any(target_os = "linux", target_os = "freebsd"))'.build-dependencies] |
| 257 | naga.workspace = true |
| 258 | |
| 259 | |
| 260 | [[example]] |
| 261 | name = "hello_world" |
| 262 | path = "examples/hello_world.rs" |
| 263 | |
| 264 | [[example]] |
| 265 | name = "image" |
| 266 | path = "examples/image/image.rs" |
| 267 | |
| 268 | [[example]] |
| 269 | name = "input" |
| 270 | path = "examples/input.rs" |
| 271 | |
| 272 | [[example]] |
| 273 | name = "on_window_close_quit" |
| 274 | path = "examples/on_window_close_quit.rs" |
| 275 | |
| 276 | [[example]] |
| 277 | name = "opacity" |
| 278 | path = "examples/opacity.rs" |
| 279 | |
| 280 | [[example]] |
| 281 | name = "pattern" |
| 282 | path = "examples/pattern.rs" |
| 283 | |
| 284 | [[example]] |
| 285 | name = "set_menus" |
| 286 | path = "examples/set_menus.rs" |
| 287 | |
| 288 | [[example]] |
| 289 | name = "shadow" |
| 290 | path = "examples/shadow.rs" |
| 291 | |
| 292 | [[example]] |
| 293 | name = "svg" |
| 294 | path = "examples/svg/svg.rs" |
| 295 | |
| 296 | [[example]] |
| 297 | name = "tab_stop" |
| 298 | path = "examples/tab_stop.rs" |
| 299 | |
| 300 | [[example]] |
| 301 | name = "text" |
| 302 | path = "examples/text.rs" |
| 303 | |
| 304 | [[example]] |
| 305 | name = "text_wrapper" |
| 306 | path = "examples/text_wrapper.rs" |
| 307 | |
| 308 | [[example]] |
| 309 | name = "tree" |
| 310 | path = "examples/tree.rs" |
| 311 | |
| 312 | [[example]] |
| 313 | name = "uniform_list" |
| 314 | path = "examples/uniform_list.rs" |
| 315 | |
| 316 | [[example]] |
| 317 | name = "window_shadow" |
| 318 | path = "examples/window_shadow.rs" |
| 319 | |
| 320 | [[example]] |
| 321 | name = "grid_layout" |
| 322 | path = "examples/grid_layout.rs" |