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    "http/test-support",
 20]
 21runtime_shaders = []
 22macos-blade = ["blade-graphics", "blade-macros", "blade-util", "bytemuck"]
 23
 24[lib]
 25path = "src/gpui.rs"
 26doctest = false
 27
 28[dependencies]
 29anyhow.workspace = true
 30async-task = "4.7"
 31backtrace = { version = "0.3", optional = true }
 32blade-graphics = { workspace = true, optional = true }
 33blade-macros = { workspace = true, optional = true }
 34blade-util = { workspace = true, optional = true }
 35bytemuck = { version = "1", optional = true }
 36collections.workspace = true
 37ctor.workspace = true
 38derive_more.workspace = true
 39env_logger.workspace = true
 40etagere = "0.2"
 41futures.workspace = true
 42font-kit = { git = "https://github.com/zed-industries/font-kit", rev = "5a5c4d4" }
 43gpui_macros.workspace = true
 44http.workspace = true
 45image = "0.25.1"
 46itertools.workspace = true
 47lazy_static.workspace = true
 48linkme = "0.3"
 49log.workspace = true
 50num_cpus = "1.13"
 51parking = "2.0.0"
 52parking_lot.workspace = true
 53pathfinder_geometry = "0.5"
 54postage.workspace = true
 55profiling.workspace = true
 56rand.workspace = true
 57raw-window-handle = "0.6"
 58refineable.workspace = true
 59resvg = { version = "0.41.0", default-features = false }
 60usvg = { version = "0.41.0", default-features = false }
 61schemars.workspace = true
 62seahash = "4.1"
 63semantic_version.workspace = true
 64serde.workspace = true
 65serde_derive.workspace = true
 66serde_json.workspace = true
 67slotmap = "1.0.6"
 68smallvec.workspace = true
 69smol.workspace = true
 70sum_tree.workspace = true
 71taffy = "0.4.3"
 72thiserror.workspace = true
 73time.workspace = true
 74util.workspace = true
 75uuid.workspace = true
 76waker-fn = "1.1.0"
 77
 78[dev-dependencies]
 79backtrace = "0.3"
 80collections = { workspace = true, features = ["test-support"] }
 81util = { workspace = true, features = ["test-support"] }
 82http = { workspace = true, features = ["test-support"] }
 83unicode-segmentation.workspace = true
 84
 85[build-dependencies]
 86embed-resource = "2.4"
 87
 88[target.'cfg(target_os = "macos")'.build-dependencies]
 89bindgen = "0.65.1"
 90cbindgen = "0.26.0"
 91
 92[target.'cfg(target_os = "macos")'.dependencies]
 93block = "0.1"
 94cocoa.workspace = true
 95core-foundation.workspace = true
 96core-graphics = "0.23"
 97core-text = "20.1"
 98foreign-types = "0.5"
 99log.workspace = true
100media.workspace = true
101metal = "0.25"
102objc = "0.2"
103
104[target.'cfg(any(target_os = "linux", target_os = "windows"))'.dependencies]
105flume = "0.11"
106blade-graphics.workspace = true
107blade-macros.workspace = true
108blade-util.workspace = true
109bytemuck = "1"
110cosmic-text = { git = "https://github.com/pop-os/cosmic-text", rev = "542b20c" }
111
112[target.'cfg(target_os = "linux")'.dependencies]
113as-raw-xcb-connection = "1"
114ashpd.workspace = true
115calloop = "0.13.0"
116calloop-wayland-source = "0.3.0"
117wayland-backend = { version = "0.3.3", features = ["client_system", "dlopen"] }
118wayland-client = { version = "0.31.2" }
119wayland-cursor = "0.31.1"
120wayland-protocols = { version = "0.31.2", features = [
121    "client",
122    "staging",
123    "unstable",
124] }
125wayland-protocols-plasma = { version = "0.2.0", features = ["client"] }
126oo7 = "0.3.0"
127filedescriptor = "0.8.2"
128x11rb = { version = "0.13.0", features = [
129    "allow-unsafe-code",
130    "xkb",
131    "randr",
132    "xinput",
133    "cursor",
134    "resource_manager",
135    "sync",
136] }
137xkbcommon = { version = "0.7", features = ["wayland", "x11"] }
138xim = { git = "https://github.com/npmania/xim-rs", rev = "27132caffc5b9bc9c432ca4afad184ab6e7c16af", features = [
139    "x11rb-xcb",
140    "x11rb-client",
141] }
142font-kit = { git = "https://github.com/zed-industries/font-kit", rev = "5a5c4d4", features = ["source-fontconfig-dlopen"] }
143x11-clipboard = "0.9.2"
144
145[target.'cfg(windows)'.dependencies]
146windows.workspace = true
147windows-core = "0.57"
148clipboard-win = "3.1.1"
149
150[[example]]
151name = "hello_world"
152path = "examples/hello_world.rs"
153
154[[example]]
155name = "image"
156path = "examples/image/image.rs"
157
158[[example]]
159name = "set_menus"
160path = "examples/set_menus.rs"
161
162[[example]]
163name = "window_shadow"
164path = "examples/window_shadow.rs"
165
166[[example]]
167name = "input"
168path = "examples/input.rs"