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]
 14default = []
 15test-support = [
 16    "backtrace",
 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.workspace = 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", "v5"] }
 74waker-fn = "1.1.0"
 75
 76[dev-dependencies]
 77backtrace = "0.3"
 78collections = { workspace = true, features = ["test-support"] }
 79util = { workspace = true, features = ["test-support"] }
 80
 81[build-dependencies]
 82bindgen = "0.65.1"
 83cbindgen = "0.26.0"
 84
 85[target.'cfg(target_os = "macos")'.dependencies]
 86block = "0.1"
 87cocoa = "0.25"
 88core-foundation.workspace = true
 89core-graphics = "0.23"
 90core-text = "20.1"
 91foreign-types = "0.5"
 92log.workspace = true
 93media.workspace = true
 94metal = "0.25"
 95objc = "0.2"
 96
 97[target.'cfg(any(target_os = "linux", target_os = "windows"))'.dependencies]
 98flume = "0.11"
 99#TODO: use these on all platforms
100blade-graphics.workspace = true
101blade-macros.workspace = true
102blade-rwh.workspace = true
103bytemuck = "1"
104cosmic-text = "0.10.0"
105copypasta = "0.10.1"
106
107[target.'cfg(target_os = "linux")'.dependencies]
108open = "5.0.1"
109ashpd = "0.7.0"
110x11rb = { version = "0.13.0", features = ["allow-unsafe-code", "xkb", "randr"] }
111wayland-client = { version = "0.31.2" }
112wayland-cursor = "0.31.1"
113wayland-protocols = { version = "0.31.2", features = [
114    "client",
115    "staging",
116    "unstable",
117] }
118wayland-backend = { version = "0.3.3", features = ["client_system"] }
119xkbcommon = { version = "0.7", features = ["wayland", "x11"] }
120as-raw-xcb-connection = "1"
121calloop = "0.12.4"
122calloop-wayland-source = "0.2.0"
123oo7 = "0.3.0"
124
125[target.'cfg(windows)'.dependencies]
126windows.workspace = true
127
128[[example]]
129name = "hello_world"
130path = "examples/hello_world.rs"
131
132[[example]]
133name = "image"
134path = "examples/image/image.rs"
135
136[[example]]
137name = "set_menus"
138path = "examples/set_menus.rs"