2021-02-20 20:02:34 +03:00
|
|
|
[package]
|
|
|
|
name = "gpui"
|
|
|
|
version = "0.1.0"
|
2024-01-03 23:59:39 +03:00
|
|
|
edition = "2021"
|
|
|
|
authors = ["Nathan Sobo <nathan@zed.dev>"]
|
2024-01-19 02:52:16 +03:00
|
|
|
description = "Zed's GPU-accelerated UI framework"
|
2023-01-18 23:28:02 +03:00
|
|
|
publish = false
|
2024-01-23 18:56:22 +03:00
|
|
|
license = "Apache-2.0"
|
2024-01-23 19:40:30 +03:00
|
|
|
|
2024-03-05 20:01:17 +03:00
|
|
|
[lints]
|
|
|
|
workspace = true
|
|
|
|
|
2024-01-03 23:59:39 +03:00
|
|
|
[features]
|
2024-03-19 20:16:18 +03:00
|
|
|
default = []
|
2024-05-30 00:15:29 +03:00
|
|
|
test-support = [
|
|
|
|
"backtrace",
|
|
|
|
"collections/test-support",
|
|
|
|
"util/test-support",
|
|
|
|
"http/test-support",
|
|
|
|
]
|
2024-01-31 19:37:16 +03:00
|
|
|
runtime_shaders = []
|
2024-05-29 19:50:45 +03:00
|
|
|
macos-blade = ["blade-graphics", "blade-macros", "blade-util", "bytemuck"]
|
2024-01-03 23:59:39 +03:00
|
|
|
|
2021-11-30 22:46:39 +03:00
|
|
|
[lib]
|
|
|
|
path = "src/gpui.rs"
|
2022-03-04 03:15:56 +03:00
|
|
|
doctest = false
|
2021-11-30 22:46:39 +03:00
|
|
|
|
2021-02-20 20:02:34 +03:00
|
|
|
[dependencies]
|
2024-01-31 05:41:29 +03:00
|
|
|
anyhow.workspace = true
|
2024-01-04 13:39:52 +03:00
|
|
|
async-task = "4.7"
|
2022-03-01 19:01:52 +03:00
|
|
|
backtrace = { version = "0.3", optional = true }
|
2024-02-17 00:39:40 +03:00
|
|
|
blade-graphics = { workspace = true, optional = true }
|
|
|
|
blade-macros = { workspace = true, optional = true }
|
2024-05-29 19:50:45 +03:00
|
|
|
blade-util = { workspace = true, optional = true }
|
2024-02-17 00:39:40 +03:00
|
|
|
bytemuck = { version = "1", optional = true }
|
2024-02-06 22:41:36 +03:00
|
|
|
collections.workspace = true
|
2023-04-25 03:41:55 +03:00
|
|
|
ctor.workspace = true
|
2023-08-06 21:45:31 +03:00
|
|
|
derive_more.workspace = true
|
2024-03-16 14:59:18 +03:00
|
|
|
env_logger.workspace = true
|
2021-03-23 17:15:41 +03:00
|
|
|
etagere = "0.2"
|
2023-04-25 03:41:55 +03:00
|
|
|
futures.workspace = true
|
2024-02-17 00:39:40 +03:00
|
|
|
font-kit = { git = "https://github.com/zed-industries/font-kit", rev = "5a5c4d4" }
|
2024-02-06 22:41:36 +03:00
|
|
|
gpui_macros.workspace = true
|
2024-05-11 00:50:20 +03:00
|
|
|
http.workspace = true
|
2024-06-25 16:12:45 +03:00
|
|
|
image = "0.25.1"
|
2024-02-26 04:37:52 +03:00
|
|
|
itertools.workspace = true
|
2023-04-25 03:41:55 +03:00
|
|
|
lazy_static.workspace = true
|
2024-01-31 05:41:29 +03:00
|
|
|
linkme = "0.3"
|
2023-04-25 03:41:55 +03:00
|
|
|
log.workspace = true
|
2021-02-21 02:05:36 +03:00
|
|
|
num_cpus = "1.13"
|
2021-07-20 21:22:02 +03:00
|
|
|
parking = "2.0.0"
|
2023-04-25 03:41:55 +03:00
|
|
|
parking_lot.workspace = true
|
2021-02-20 20:02:34 +03:00
|
|
|
pathfinder_geometry = "0.5"
|
2023-04-25 03:41:55 +03:00
|
|
|
postage.workspace = true
|
2024-02-22 21:59:52 +03:00
|
|
|
profiling.workspace = true
|
2023-04-25 03:41:55 +03:00
|
|
|
rand.workspace = true
|
2024-02-04 09:39:44 +03:00
|
|
|
raw-window-handle = "0.6"
|
2023-08-18 10:03:46 +03:00
|
|
|
refineable.workspace = true
|
2024-04-11 05:12:05 +03:00
|
|
|
resvg = { version = "0.41.0", default-features = false }
|
|
|
|
usvg = { version = "0.41.0", default-features = false }
|
2024-01-31 05:41:29 +03:00
|
|
|
schemars.workspace = true
|
2021-04-13 20:03:56 +03:00
|
|
|
seahash = "4.1"
|
2024-03-29 19:11:57 +03:00
|
|
|
semantic_version.workspace = true
|
2023-04-25 03:41:55 +03:00
|
|
|
serde.workspace = true
|
|
|
|
serde_derive.workspace = true
|
|
|
|
serde_json.workspace = true
|
2024-01-31 05:41:29 +03:00
|
|
|
slotmap = "1.0.6"
|
2023-04-25 03:41:55 +03:00
|
|
|
smallvec.workspace = true
|
|
|
|
smol.workspace = true
|
2024-02-06 22:41:36 +03:00
|
|
|
sum_tree.workspace = true
|
2024-05-10 16:05:50 +03:00
|
|
|
taffy = "0.4.3"
|
2023-09-07 00:22:29 +03:00
|
|
|
thiserror.workspace = true
|
2023-04-25 03:41:55 +03:00
|
|
|
time.workspace = true
|
2024-02-06 22:41:36 +03:00
|
|
|
util.workspace = true
|
2024-04-12 17:53:10 +03:00
|
|
|
uuid.workspace = true
|
2021-07-20 21:22:02 +03:00
|
|
|
waker-fn = "1.1.0"
|
2021-02-21 02:05:36 +03:00
|
|
|
|
2021-03-24 20:20:25 +03:00
|
|
|
[dev-dependencies]
|
2022-03-01 19:01:52 +03:00
|
|
|
backtrace = "0.3"
|
2024-02-06 22:41:36 +03:00
|
|
|
collections = { workspace = true, features = ["test-support"] }
|
|
|
|
util = { workspace = true, features = ["test-support"] }
|
2024-05-11 00:50:20 +03:00
|
|
|
http = { workspace = true, features = ["test-support"] }
|
2024-06-26 07:06:50 +03:00
|
|
|
unicode-segmentation.workspace = true
|
2021-03-24 20:20:25 +03:00
|
|
|
|
2024-06-25 06:26:24 +03:00
|
|
|
[build-dependencies]
|
|
|
|
embed-resource = "2.4"
|
|
|
|
|
2024-03-28 20:22:31 +03:00
|
|
|
[target.'cfg(target_os = "macos")'.build-dependencies]
|
2024-01-03 23:59:39 +03:00
|
|
|
bindgen = "0.65.1"
|
|
|
|
cbindgen = "0.26.0"
|
|
|
|
|
2021-02-20 20:02:34 +03:00
|
|
|
[target.'cfg(target_os = "macos")'.dependencies]
|
2021-04-14 17:30:03 +03:00
|
|
|
block = "0.1"
|
2024-06-11 21:43:12 +03:00
|
|
|
cocoa.workspace = true
|
2024-02-24 05:18:06 +03:00
|
|
|
core-foundation.workspace = true
|
2024-02-17 00:39:40 +03:00
|
|
|
core-graphics = "0.23"
|
|
|
|
core-text = "20.1"
|
|
|
|
foreign-types = "0.5"
|
2023-04-25 03:41:55 +03:00
|
|
|
log.workspace = true
|
2024-02-06 22:41:36 +03:00
|
|
|
media.workspace = true
|
2024-02-17 00:39:40 +03:00
|
|
|
metal = "0.25"
|
2021-02-20 20:02:34 +03:00
|
|
|
objc = "0.2"
|
2024-01-26 10:08:48 +03:00
|
|
|
|
2024-03-03 21:53:22 +03:00
|
|
|
[target.'cfg(any(target_os = "linux", target_os = "windows"))'.dependencies]
|
2024-01-26 10:08:48 +03:00
|
|
|
flume = "0.11"
|
2024-03-03 21:53:22 +03:00
|
|
|
blade-graphics.workspace = true
|
|
|
|
blade-macros.workspace = true
|
2024-05-29 19:50:45 +03:00
|
|
|
blade-util.workspace = true
|
2024-03-03 21:53:22 +03:00
|
|
|
bytemuck = "1"
|
2024-06-16 01:23:00 +03:00
|
|
|
cosmic-text = { git = "https://github.com/pop-os/cosmic-text", rev = "542b20c" }
|
2024-03-03 21:53:22 +03:00
|
|
|
|
|
|
|
[target.'cfg(target_os = "linux")'.dependencies]
|
2024-03-28 20:22:31 +03:00
|
|
|
as-raw-xcb-connection = "1"
|
2024-05-30 00:15:29 +03:00
|
|
|
ashpd.workspace = true
|
2024-06-18 20:04:19 +03:00
|
|
|
calloop = "0.13.0"
|
|
|
|
calloop-wayland-source = "0.3.0"
|
2024-06-19 01:07:45 +03:00
|
|
|
wayland-backend = { version = "0.3.3", features = ["client_system", "dlopen"] }
|
2024-03-08 19:14:47 +03:00
|
|
|
wayland-client = { version = "0.31.2" }
|
2024-03-03 22:28:20 +03:00
|
|
|
wayland-cursor = "0.31.1"
|
2024-03-08 19:14:47 +03:00
|
|
|
wayland-protocols = { version = "0.31.2", features = [
|
|
|
|
"client",
|
|
|
|
"staging",
|
|
|
|
"unstable",
|
|
|
|
] }
|
2024-05-06 19:53:08 +03:00
|
|
|
wayland-protocols-plasma = { version = "0.2.0", features = ["client"] }
|
2024-03-25 17:27:16 +03:00
|
|
|
oo7 = "0.3.0"
|
2024-04-23 02:20:24 +03:00
|
|
|
filedescriptor = "0.8.2"
|
2024-04-30 02:07:54 +03:00
|
|
|
x11rb = { version = "0.13.0", features = [
|
|
|
|
"allow-unsafe-code",
|
|
|
|
"xkb",
|
|
|
|
"randr",
|
|
|
|
"xinput",
|
2024-05-06 23:05:00 +03:00
|
|
|
"cursor",
|
2024-04-30 02:07:54 +03:00
|
|
|
"resource_manager",
|
2024-07-03 21:28:09 +03:00
|
|
|
"sync",
|
2024-04-30 02:07:54 +03:00
|
|
|
] }
|
2024-03-28 20:22:31 +03:00
|
|
|
xkbcommon = { version = "0.7", features = ["wayland", "x11"] }
|
2024-05-30 00:15:29 +03:00
|
|
|
xim = { git = "https://github.com/npmania/xim-rs", rev = "27132caffc5b9bc9c432ca4afad184ab6e7c16af", features = [
|
|
|
|
"x11rb-xcb",
|
|
|
|
"x11rb-client",
|
|
|
|
] }
|
2024-06-22 02:32:32 +03:00
|
|
|
font-kit = { git = "https://github.com/zed-industries/font-kit", rev = "5a5c4d4", features = ["source-fontconfig-dlopen"] }
|
2024-06-18 20:04:19 +03:00
|
|
|
x11-clipboard = "0.9.2"
|
2024-03-03 21:53:22 +03:00
|
|
|
|
2024-03-03 22:58:31 +03:00
|
|
|
[target.'cfg(windows)'.dependencies]
|
|
|
|
windows.workspace = true
|
2024-06-14 20:12:20 +03:00
|
|
|
windows-core = "0.57"
|
2024-06-18 20:04:19 +03:00
|
|
|
clipboard-win = "3.1.1"
|
2024-02-22 12:18:34 +03:00
|
|
|
|
|
|
|
[[example]]
|
|
|
|
name = "hello_world"
|
|
|
|
path = "examples/hello_world.rs"
|
|
|
|
|
|
|
|
[[example]]
|
|
|
|
name = "image"
|
2024-03-11 10:56:45 +03:00
|
|
|
path = "examples/image/image.rs"
|
|
|
|
|
|
|
|
[[example]]
|
|
|
|
name = "set_menus"
|
|
|
|
path = "examples/set_menus.rs"
|
2024-06-26 07:06:50 +03:00
|
|
|
|
2024-07-03 21:28:09 +03:00
|
|
|
[[example]]
|
|
|
|
name = "window_shadow"
|
|
|
|
path = "examples/window_shadow.rs"
|
|
|
|
|
2024-06-26 07:06:50 +03:00
|
|
|
[[example]]
|
|
|
|
name = "input"
|
|
|
|
path = "examples/input.rs"
|