1[package]
2name = "gpui2"
3version = "0.1.0"
4edition = "2021"
5authors = ["Nathan Sobo <nathan@zed.dev>"]
6description = "The next version of Zed's GPU-accelerated UI framework"
7publish = false
8
9[features]
10test-support = ["backtrace", "dhat", "env_logger", "collections/test-support", "util/test-support"]
11
12# Suppress a panic when both GPUI1 and GPUI2 are loaded.
13#
14# This is used in the `theme_importer` where we need to depend on both
15# GPUI1 and GPUI2 in order to convert Zed1 themes to Zed2 themes.
16allow-multiple-gpui-versions = ["util/allow-multiple-gpui-versions"]
17
18[lib]
19path = "src/gpui2.rs"
20doctest = false
21
22[dependencies]
23collections = { path = "../collections" }
24gpui2_macros = { path = "../gpui2_macros" }
25util = { path = "../util" }
26sum_tree = { path = "../sum_tree" }
27sqlez = { path = "../sqlez" }
28async-task = "4.0.3"
29backtrace = { version = "0.3", optional = true }
30ctor.workspace = true
31linkme = "0.3"
32derive_more.workspace = true
33dhat = { version = "0.3", optional = true }
34env_logger = { version = "0.9", optional = true }
35etagere = "0.2"
36futures.workspace = true
37image = "0.23"
38itertools = "0.10"
39lazy_static.workspace = true
40log.workspace = true
41num_cpus = "1.13"
42ordered-float.workspace = true
43parking = "2.0.0"
44parking_lot.workspace = true
45pathfinder_geometry = "0.5"
46postage.workspace = true
47rand.workspace = true
48refineable.workspace = true
49resvg = "0.14"
50seahash = "4.1"
51serde.workspace = true
52serde_derive.workspace = true
53serde_json.workspace = true
54smallvec.workspace = true
55smol.workspace = true
56taffy = { git = "https://github.com/DioxusLabs/taffy", rev = "1876f72bee5e376023eaa518aa7b8a34c769bd1b" }
57thiserror.workspace = true
58time.workspace = true
59tiny-skia = "0.5"
60usvg = { version = "0.14", features = [] }
61uuid = { version = "1.1.2", features = ["v4"] }
62waker-fn = "1.1.0"
63slotmap = "1.0.6"
64schemars.workspace = true
65bitflags = "2.4.0"
66
67[dev-dependencies]
68backtrace = "0.3"
69collections = { path = "../collections", features = ["test-support"] }
70dhat = "0.3"
71env_logger.workspace = true
72png = "0.16"
73simplelog = "0.9"
74util = { path = "../util", features = ["test-support"] }
75
76[build-dependencies]
77bindgen = "0.65.1"
78cbindgen = "0.26.0"
79
80[target.'cfg(target_os = "macos")'.dependencies]
81media = { path = "../media" }
82anyhow.workspace = true
83block = "0.1"
84cocoa = "0.24"
85core-foundation = { version = "0.9.3", features = ["with-uuid"] }
86core-graphics = "0.22.3"
87core-text = "19.2"
88font-kit = { git = "https://github.com/zed-industries/font-kit", rev = "b2f77d56f450338aa4f7dd2f0197d8c9acb0cf18" }
89foreign-types = "0.3"
90log.workspace = true
91metal = "0.21.0"
92objc = "0.2"