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", "http/test-support"]
 16runtime_shaders = []
 17macos-blade = ["blade-graphics", "blade-macros", "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 }
 29bytemuck = { version = "1", optional = true }
 30collections.workspace = true
 31ctor.workspace = true
 32derive_more.workspace = true
 33env_logger.workspace = true
 34etagere = "0.2"
 35futures.workspace = true
 36font-kit = { git = "https://github.com/zed-industries/font-kit", rev = "5a5c4d4" }
 37gpui_macros.workspace = true
 38http.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 = { version = "0.41.0", default-features = false }
 54usvg = { version = "0.41.0", default-features = false }
 55schemars.workspace = true
 56seahash = "4.1"
 57semantic_version.workspace = true
 58serde.workspace = true
 59serde_derive.workspace = true
 60serde_json.workspace = true
 61slotmap = "1.0.6"
 62smallvec.workspace = true
 63smol.workspace = true
 64sum_tree.workspace = true
 65taffy = "0.4.3"
 66thiserror.workspace = true
 67time.workspace = true
 68util.workspace = true
 69uuid.workspace = true
 70waker-fn = "1.1.0"
 71
 72[dev-dependencies]
 73backtrace = "0.3"
 74collections = { workspace = true, features = ["test-support"] }
 75util = { workspace = true, features = ["test-support"] }
 76http = { 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
 99bytemuck = "1"
100cosmic-text = "0.11.2"
101copypasta = "0.10.1"
102
103[target.'cfg(target_os = "linux")'.dependencies]
104as-raw-xcb-connection = "1"
105ashpd = "0.8.0"
106calloop = "0.12.4"
107calloop-wayland-source = "0.2.0"
108wayland-backend = { version = "0.3.3", features = ["client_system"] }
109wayland-client = { version = "0.31.2" }
110wayland-cursor = "0.31.1"
111wayland-protocols = { version = "0.31.2", features = [
112    "client",
113    "staging",
114    "unstable",
115] }
116wayland-protocols-plasma = { version = "0.2.0", features = ["client"] }
117oo7 = "0.3.0"
118open = "5.1.2"
119filedescriptor = "0.8.2"
120x11rb = { version = "0.13.0", features = [
121    "allow-unsafe-code",
122    "xkb",
123    "randr",
124    "xinput",
125    "cursor",
126    "resource_manager",
127] }
128xkbcommon = { version = "0.7", features = ["wayland", "x11"] }
129
130[target.'cfg(windows)'.dependencies]
131windows.workspace = true
132windows-core = "0.56"
133
134[target.'cfg(windows)'.build-dependencies]
135embed-resource = "2.4"
136
137[[example]]
138name = "hello_world"
139path = "examples/hello_world.rs"
140
141[[example]]
142name = "image"
143path = "examples/image/image.rs"
144
145[[example]]
146name = "set_menus"
147path = "examples/set_menus.rs"