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]
 14test-support = [
 15    "backtrace",
 16    "env_logger",
 17    "collections/test-support",
 18    "util/test-support",
 19]
 20runtime_shaders = []
 21macos-blade = ["blade-graphics", "blade-macros", "blade-rwh", "bytemuck"]
 22
 23[lib]
 24path = "src/gpui.rs"
 25doctest = false
 26
 27[dependencies]
 28anyhow.workspace = true
 29async-task = "4.7"
 30backtrace = { version = "0.3", optional = true }
 31blade-graphics = { workspace = true, optional = true }
 32blade-macros = { workspace = true, optional = true }
 33blade-rwh = { workspace = true, optional = true }
 34bytemuck = { version = "1", optional = true }
 35collections.workspace = true
 36ctor.workspace = true
 37derive_more.workspace = true
 38env_logger = { version = "0.9", optional = true }
 39etagere = "0.2"
 40futures.workspace = true
 41font-kit = { git = "https://github.com/zed-industries/font-kit", rev = "5a5c4d4" }
 42gpui_macros.workspace = true
 43image = "0.23"
 44itertools.workspace = true
 45lazy_static.workspace = true
 46linkme = "0.3"
 47log.workspace = true
 48num_cpus = "1.13"
 49parking = "2.0.0"
 50parking_lot.workspace = true
 51pathfinder_geometry = "0.5"
 52postage.workspace = true
 53profiling.workspace = true
 54rand.workspace = true
 55raw-window-handle = "0.6"
 56refineable.workspace = true
 57resvg = "0.14"
 58schemars.workspace = true
 59seahash = "4.1"
 60serde.workspace = true
 61serde_derive.workspace = true
 62serde_json.workspace = true
 63slotmap = "1.0.6"
 64smallvec.workspace = true
 65smol.workspace = true
 66sum_tree.workspace = true
 67taffy = { git = "https://github.com/DioxusLabs/taffy", rev = "1876f72bee5e376023eaa518aa7b8a34c769bd1b" }
 68thiserror.workspace = true
 69time.workspace = true
 70tiny-skia = "0.5"
 71usvg = { version = "0.14", features = [] }
 72util.workspace = true
 73uuid = { version = "1.1.2", features = ["v4"] }
 74waker-fn = "1.1.0"
 75
 76[dev-dependencies]
 77backtrace = "0.3"
 78collections = { workspace = true, features = ["test-support"] }
 79env_logger.workspace = true
 80util = { workspace = true, features = ["test-support"] }
 81
 82[build-dependencies]
 83bindgen = "0.65.1"
 84cbindgen = "0.26.0"
 85
 86[target.'cfg(target_os = "macos")'.dependencies]
 87block = "0.1"
 88cocoa = "0.25"
 89core-foundation.workspace = true
 90core-graphics = "0.23"
 91core-text = "20.1"
 92foreign-types = "0.5"
 93log.workspace = true
 94media.workspace = true
 95metal = "0.25"
 96objc = "0.2"
 97
 98[target.'cfg(any(target_os = "linux", target_os = "windows"))'.dependencies]
 99flume = "0.11"
100#TODO: use these on all platforms
101blade-graphics.workspace = true
102blade-macros.workspace = true
103blade-rwh.workspace = true
104bytemuck = "1"
105cosmic-text = "0.10.0"
106
107[target.'cfg(target_os = "linux")'.dependencies]
108open = "5.0.1"
109ashpd = "0.7.0"
110xcb = { version = "1.3", features = ["as-raw-xcb-connection", "randr", "xkb"] }
111wayland-client= { version = "0.31.2" }
112wayland-cursor = "0.31.1"
113wayland-protocols = { version = "0.31.2", features = ["client", "staging", "unstable"] }
114wayland-backend = { version = "0.3.3", features = ["client_system"] }
115xkbcommon = { version = "0.7", features = ["wayland", "x11"] }
116as-raw-xcb-connection = "1"
117calloop = "0.12.4"
118calloop-wayland-source = "0.2.0"
119copypasta = "0.10.1"
120oo7 = "0.3.0"
121
122[target.'cfg(windows)'.dependencies]
123windows.workspace = true
124
125[[example]]
126name = "hello_world"
127path = "examples/hello_world.rs"
128
129[[example]]
130name = "image"
131path = "examples/image/image.rs"