mirror of
https://github.com/zed-industries/zed.git
synced 2024-11-08 07:35:01 +03:00
991c9ec441
[Profiling](https://crates.io/crates/profiling) crate allows easy integration with various profiler tools. The best thing is - annotations compile to nothing unless you request a specific feature. For example, I used this command to enable Tracy support: ```bash cargo run --features profiling/profile-with-tracy ``` At the same time I had Tracy tool open and waiting for connection. It gathered nice stats from the run: ![zed-profiler](https://github.com/zed-industries/zed/assets/107301/5233045d-078c-4ad8-8b00-7ae55cf94ebb) Release Notes: - N/A
127 lines
3.3 KiB
TOML
127 lines
3.3 KiB
TOML
[package]
|
|
name = "gpui"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
authors = ["Nathan Sobo <nathan@zed.dev>"]
|
|
description = "Zed's GPU-accelerated UI framework"
|
|
publish = false
|
|
license = "Apache-2.0"
|
|
|
|
[features]
|
|
test-support = [
|
|
"backtrace",
|
|
"dhat",
|
|
"env_logger",
|
|
"collections/test-support",
|
|
"util/test-support",
|
|
]
|
|
runtime_shaders = []
|
|
macos-blade = ["blade-graphics", "blade-macros", "blade-rwh", "bytemuck"]
|
|
|
|
[lib]
|
|
path = "src/gpui.rs"
|
|
doctest = false
|
|
|
|
[dependencies]
|
|
anyhow.workspace = true
|
|
async-task = "4.7"
|
|
backtrace = { version = "0.3", optional = true }
|
|
bitflags = "2.4.0"
|
|
blade-graphics = { workspace = true, optional = true }
|
|
blade-macros = { workspace = true, optional = true }
|
|
blade-rwh = { workspace = true, optional = true }
|
|
bytemuck = { version = "1", optional = true }
|
|
collections.workspace = true
|
|
ctor.workspace = true
|
|
derive_more.workspace = true
|
|
dhat = { version = "0.3", optional = true }
|
|
env_logger = { version = "0.9", optional = true }
|
|
etagere = "0.2"
|
|
futures.workspace = true
|
|
font-kit = { git = "https://github.com/zed-industries/font-kit", rev = "5a5c4d4" }
|
|
gpui_macros.workspace = true
|
|
image = "0.23"
|
|
itertools = "0.10"
|
|
lazy_static.workspace = true
|
|
linkme = "0.3"
|
|
log.workspace = true
|
|
num_cpus = "1.13"
|
|
ordered-float.workspace = true
|
|
parking = "2.0.0"
|
|
parking_lot.workspace = true
|
|
pathfinder_geometry = "0.5"
|
|
postage.workspace = true
|
|
profiling.workspace = true
|
|
rand.workspace = true
|
|
raw-window-handle = "0.6"
|
|
refineable.workspace = true
|
|
resvg = "0.14"
|
|
schemars.workspace = true
|
|
seahash = "4.1"
|
|
serde.workspace = true
|
|
serde_derive.workspace = true
|
|
serde_json.workspace = true
|
|
slotmap = "1.0.6"
|
|
smallvec.workspace = true
|
|
smol.workspace = true
|
|
sum_tree.workspace = true
|
|
taffy = { git = "https://github.com/DioxusLabs/taffy", rev = "1876f72bee5e376023eaa518aa7b8a34c769bd1b" }
|
|
thiserror.workspace = true
|
|
time.workspace = true
|
|
tiny-skia = "0.5"
|
|
usvg = { version = "0.14", features = [] }
|
|
util.workspace = true
|
|
uuid = { version = "1.1.2", features = ["v4"] }
|
|
waker-fn = "1.1.0"
|
|
|
|
[dev-dependencies]
|
|
backtrace = "0.3"
|
|
collections = { workspace = true, features = ["test-support"] }
|
|
dhat = "0.3"
|
|
env_logger.workspace = true
|
|
png = "0.16"
|
|
simplelog = "0.9"
|
|
util = { workspace = true, features = ["test-support"] }
|
|
|
|
[build-dependencies]
|
|
bindgen = "0.65.1"
|
|
cbindgen = "0.26.0"
|
|
|
|
[target.'cfg(target_os = "macos")'.dependencies]
|
|
block = "0.1"
|
|
cocoa = "0.25"
|
|
core-foundation = { version = "0.9.3", features = ["with-uuid"] }
|
|
core-graphics = "0.23"
|
|
core-text = "20.1"
|
|
foreign-types = "0.5"
|
|
log.workspace = true
|
|
media.workspace = true
|
|
metal = "0.25"
|
|
objc = "0.2"
|
|
|
|
[target.'cfg(target_os = "linux")'.dependencies]
|
|
flume = "0.11"
|
|
open = "5.0.1"
|
|
ashpd = "0.7.0"
|
|
# todo!(linux) - Technically do not use `randr`, but it doesn't compile otherwise
|
|
xcb = { version = "1.3", features = ["as-raw-xcb-connection", "present", "randr", "xkb"] }
|
|
wayland-client= { version = "0.31.2" }
|
|
wayland-protocols = { version = "0.31.2", features = ["client", "staging", "unstable"] }
|
|
wayland-backend = { version = "0.3.3", features = ["client_system"] }
|
|
xkbcommon = { version = "0.7", features = ["wayland", "x11"] }
|
|
as-raw-xcb-connection = "1"
|
|
#TODO: use these on all platforms
|
|
blade-graphics.workspace = true
|
|
blade-macros.workspace = true
|
|
blade-rwh.workspace = true
|
|
bytemuck = "1"
|
|
cosmic-text = "0.10.0"
|
|
|
|
[[example]]
|
|
name = "hello_world"
|
|
path = "examples/hello_world.rs"
|
|
|
|
[[example]]
|
|
name = "image"
|
|
path = "examples/image/image.rs"
|