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 = { 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 = { git = "https://github.com/DioxusLabs/taffy", rev = "1876f72bee5e376023eaa518aa7b8a34c769bd1b" }
 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"] }
 76
 77[target.'cfg(target_os = "macos")'.build-dependencies]
 78bindgen = "0.65.1"
 79cbindgen = "0.26.0"
 80
 81[target.'cfg(target_os = "macos")'.dependencies]
 82block = "0.1"
 83cocoa = "0.25"
 84core-foundation.workspace = true
 85core-graphics = "0.23"
 86core-text = "20.1"
 87foreign-types = "0.5"
 88log.workspace = true
 89media.workspace = true
 90metal = "0.25"
 91objc = "0.2"
 92
 93[target.'cfg(any(target_os = "linux", target_os = "windows"))'.dependencies]
 94flume = "0.11"
 95#TODO: use these on all platforms
 96blade-graphics.workspace = true
 97blade-macros.workspace = true
 98blade-rwh.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] }
116oo7 = "0.3.0"
117open = "5.1.2"
118x11rb = { version = "0.13.0", features = ["allow-unsafe-code", "xkb", "randr"] }
119xkbcommon = { version = "0.7", features = ["wayland", "x11"] }
120
121[target.'cfg(windows)'.dependencies]
122windows.workspace = true
123
124[[example]]
125name = "hello_world"
126path = "examples/hello_world.rs"
127
128[[example]]
129name = "image"
130path = "examples/image/image.rs"
131
132[[example]]
133name = "set_menus"
134path = "examples/set_menus.rs"