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