[package]
edition = "2024"
name = "agentty-gpui"
version = "0.1.0"
authors = ["Nathan Sobo <nathan@zed.dev>"]
build = "build.rs"
publish = true
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Zed's GPU-accelerated UI framework"
homepage = "https://gpui.rs"
readme = "README.md"
keywords = [
"desktop",
"gui",
"immediate",
]
categories = ["gui"]
license = "Apache-2.0"
repository = "https://github.com/empty-user77/agentty-gpui"
resolver = "2"
[package.metadata.cargo-shear]
ignored = [
"getrandom",
"objc2",
"objc2-metal",
]
ignored-paths = [
"src/_ownership_and_data_flow.rs",
"benches/focus_cleanup.rs",
]
[features]
bench = ["bench-support"]
bench-support = [
"profiler",
"dep:criterion",
"dep:bench_metrics",
]
default = [
"font-kit",
"wayland",
"x11",
"windows-manifest",
]
font-kit = []
hot-reload = [
"dep:async-tungstenite",
"dep:dioxus-cli-config",
"dep:dioxus-devtools-types",
"dep:smol",
"dep:subsecond",
]
inspector = ["gpui_macros/inspector"]
leak-detection = []
profiler = ["dep:hdrhistogram"]
screen-capture = ["scap"]
stacker = ["dep:stacksafe"]
test-support = [
"bench_metrics?/test-support",
"collections/test-support",
"http_client/test-support",
"wayland",
"x11",
"proptest",
"dep:futures-concurrency",
"dep:postage",
"dep:web-time",
]
wayland = []
windows-manifest = ["dep:embed-resource"]
x11 = ["scap?/x11"]
[lib]
name = "gpui"
path = "src/gpui.rs"
[[example]]
name = "hello_world"
path = "examples/hello_world.rs"
[[example]]
name = "move_entity_between_windows"
path = "examples/move_entity_between_windows.rs"
[[example]]
name = "input"
path = "examples/input.rs"
[[example]]
name = "on_window_close_quit"
path = "examples/on_window_close_quit.rs"
[[example]]
name = "window_movable"
path = "examples/window_movable.rs"
[[example]]
name = "opacity"
path = "examples/opacity.rs"
[[example]]
name = "pattern"
path = "examples/pattern.rs"
[[example]]
name = "set_menus"
path = "examples/set_menus.rs"
[[example]]
name = "system_notifications"
path = "examples/system_notifications.rs"
[[example]]
name = "shadow"
path = "examples/shadow.rs"
[[example]]
name = "svg"
path = "examples/svg/svg.rs"
[[example]]
name = "tab_stop"
path = "examples/tab_stop.rs"
[[example]]
name = "text"
path = "examples/text.rs"
[[example]]
name = "text_wrapper"
path = "examples/text_wrapper.rs"
[[example]]
name = "tree"
path = "examples/tree.rs"
[[example]]
name = "uniform_list"
path = "examples/uniform_list.rs"
[[example]]
name = "window_shadow"
path = "examples/window_shadow.rs"
[[example]]
name = "grid_layout"
path = "examples/grid_layout.rs"
[[example]]
name = "list_example"
path = "examples/list_example.rs"
[[example]]
name = "mouse_pressure"
path = "examples/mouse_pressure.rs"
[[example]]
name = "a11y"
path = "examples/a11y.rs"
[[example]]
name = "view_example"
path = "examples/view_example/view_example_main.rs"
[[example]]
name = "toggle_headless"
path = "examples/toggle_headless.rs"
[[test]]
name = "action_macros"
path = "tests/action_macros.rs"
[dependencies.accesskit]
version = "0.24.0"
features = ["enumn"]
[dependencies.anyhow]
version = "1.0.86"
[dependencies.async-task]
version = "4.7"
[dependencies.backtrace]
version = "0.3"
[dependencies.bench_metrics]
version = "0.1.0"
optional = true
package = "agentty-gpui-bench-metrics"
[dependencies.bitflags]
version = "2.6.0"
[dependencies.chrono]
version = "0.4"
features = [
"std",
"serde",
]
default-features = true
[dependencies.collections]
version = "0.1.0"
package = "agentty-gpui-collections"
[dependencies.criterion]
version = "0.8.2"
features = ["html_reports"]
optional = true
[dependencies.derive_more]
version = "2.1"
features = [
"deref",
"deref_mut",
"from_str",
"add",
"add_assign",
"mul",
"mul_assign",
"not",
]
[dependencies.etagere]
version = "0.2"
[dependencies.futures]
version = "0.3.34"
[dependencies.futures-concurrency]
version = "7.7.1"
optional = true
[dependencies.gpui_macros]
version = "0.1.0"
package = "agentty-gpui-macros"
[dependencies.gpui_shared_string]
version = "0.1.0"
package = "agentty-gpui-shared-string"
[dependencies.gpui_util]
version = "0.1.0"
package = "agentty-gpui-util"
[dependencies.hdrhistogram]
version = "7"
optional = true
default-features = false
[dependencies.heapless]
version = "0.9.2"
[dependencies.http_client]
version = "0.1.0"
package = "agentty-gpui-http-client"
[dependencies.icu_segmenter]
version = "2.3.0"
features = ["compiled_data"]
default-features = false
[dependencies.image]
version = "0.25.1"
features = [
"bmp",
"dds",
"exr",
"ff",
"gif",
"hdr",
"ico",
"jpeg",
"png",
"pnm",
"qoi",
"rayon",
"tga",
"tiff",
"webp",
]
default-features = false
[dependencies.inventory]
version = "0.3.19"
[dependencies.itertools]
version = "0.14.0"
[dependencies.log]
version = "0.4"
features = ["std"]
default-features = false
[dependencies.lyon]
version = "1.0"
[dependencies.num_cpus]
version = "1.13"
[dependencies.parking]
version = "2.0.0"
[dependencies.parking_lot]
version = "0.12.1"
[dependencies.pin-project]
version = "1.1.10"
[dependencies.postage]
version = "0.5"
features = ["blocking"]
optional = true
default-features = false
[dependencies.profiling]
version = "1"
[dependencies.proptest]
version = "1.12.0"
features = ["attr-macro"]
optional = true
[dependencies.rand]
version = "0.9"
features = [
"std",
"std_rng",
"os_rng",
"small_rng",
"thread_rng",
]
default-features = false
[dependencies.raw-window-handle]
version = "0.6"
[dependencies.refineable]
version = "0.1.0"
package = "agentty-gpui-refineable"
[dependencies.regex]
version = "1.5"
features = [
"std",
"perf",
]
default-features = true
[dependencies.resvg]
version = "0.46.0"
features = [
"text",
"system-fonts",
"memmap-fonts",
"raster-images",
]
default-features = false
[dependencies.scheduler]
version = "0.1.0"
package = "agentty-gpui-scheduler"
[dependencies.schemars]
version = "1.0"
features = [
"std",
"indexmap2",
"derive",
]
default-features = false
[dependencies.seahash]
version = "4.1"
[dependencies.serde]
version = "1.0"
features = [
"rc",
"derive",
]
[dependencies.serde_json]
version = "1.0.144"
features = [
"preserve_order",
"raw_value",
]
[dependencies.slotmap]
version = "1.0.6"
[dependencies.smallvec]
version = "1.6"
features = [
"union",
"const_new",
]
[dependencies.spin]
version = "0.10"
features = [
"mutex",
"spin_mutex",
"lock_api",
]
default-features = false
[dependencies.stacksafe]
version = "1.0"
optional = true
[dependencies.strum]
version = "0.28"
features = ["derive"]
[dependencies.sum_tree]
version = "0.1.0"
package = "agentty-gpui-sum-tree"
[dependencies.taffy]
version = "=0.15.0"
features = [
"std",
"taffy_tree",
"flexbox",
"grid",
"block_layout",
"float_layout",
"content_size",
]
default-features = false
[dependencies.thiserror]
version = "2.0.12"
[dependencies.ttf-parser]
version = "0.25"
[dependencies.unicode-segmentation]
version = "1.10"
[dependencies.url]
version = "2.2"
[dependencies.usvg]
version = "0.46.0"
default-features = false
[dependencies.uuid]
version = "1.1"
features = [
"serde",
"v4",
]
[dependencies.waker-fn]
version = "1.2.0"
[dependencies.web-time]
version = "1.1.0"
optional = true
[dev-dependencies.backtrace]
version = "0.3"
[dev-dependencies.env_logger]
version = "0.11"
[dev-dependencies.futures-concurrency]
version = "7.7.1"
[dev-dependencies.lyon]
version = "1.0"
features = ["extra"]
[dev-dependencies.postage]
version = "0.5"
features = ["blocking"]
default-features = false
[dev-dependencies.rand]
version = "0.9"
features = [
"std",
"std_rng",
"os_rng",
]
default-features = true
[dev-dependencies.web-time]
version = "1.1.0"
[build-dependencies.embed-resource]
version = "3.0"
optional = true
[target.'cfg(all(target_arch = "wasm32", target_os = "unknown"))'.dependencies.async-channel]
version = "2.5"
default-features = false
[target.'cfg(any(target_os = "linux", target_os = "android"))'.dependencies.libc]
version = "0.2"
[target.'cfg(any(target_os = "linux", target_os = "freebsd", target_os = "windows"))'.dependencies.scap]
version = "0.0.8-zed"
optional = true
default-features = false
package = "zed-scap"
[target.'cfg(any(target_os = "macos", target_os = "ios"))'.dependencies.objc2-core-foundation]
version = "=0.3.2"
default-features = false
[target.'cfg(any(target_os = "macos", target_os = "ios"))'.dependencies.objc2-core-video]
version = "=0.3.2"
features = [
"CVBuffer",
"CVImageBuffer",
"CVPixelBuffer",
]
default-features = false
[target.'cfg(any(target_os = "macos", target_os = "linux", target_os = "windows", target_os = "ios"))'.dependencies.async-tungstenite]
version = "0.33"
optional = true
[target.'cfg(any(target_os = "macos", target_os = "linux", target_os = "windows", target_os = "ios"))'.dependencies.dioxus-cli-config]
version = "=0.7.10"
optional = true
[target.'cfg(any(target_os = "macos", target_os = "linux", target_os = "windows", target_os = "ios"))'.dependencies.dioxus-devtools-types]
version = "=0.7.10"
optional = true
[target.'cfg(any(target_os = "macos", target_os = "linux", target_os = "windows", target_os = "ios"))'.dependencies.smol]
version = "2.0"
optional = true
[target.'cfg(any(target_os = "macos", target_os = "linux", target_os = "windows", target_os = "ios"))'.dependencies.subsecond]
version = "=0.7.10"
optional = true
[target.'cfg(not(all(target_arch = "wasm32", target_os = "unknown")))'.dependencies.async-channel]
version = "2.5"
features = ["std"]
default-features = false
[target.'cfg(not(target_family = "wasm"))'.dependencies.pollster]
version = "0.4.0"
[target.'cfg(not(target_family = "wasm"))'.dev-dependencies.proptest]
version = "1.12.0"
features = ["attr-macro"]
[target.'cfg(target_family = "wasm")'.dependencies.getrandom]
version = "0.3.4"
features = ["wasm_js"]
[target.'cfg(target_family = "wasm")'.dependencies.uuid]
version = "1.1"
features = [
"serde",
"js",
]
[target.'cfg(target_family = "wasm")'.dev-dependencies.wasm-bindgen]
version = "0.2.120"
[target.'cfg(target_family = "wasm")'.dev-dependencies.web-sys]
version = "0.3"
[target.'cfg(target_os = "macos")'.dependencies.log]
version = "0.4"
features = ["std"]
default-features = false
[target.'cfg(target_os = "macos")'.dependencies.objc2]
version = "0.6"
optional = true
[target.'cfg(target_os = "macos")'.dependencies.objc2-metal]
version = "0.3"
optional = true
[target.'cfg(target_os = "windows")'.dependencies.windows]
version = "0.62"
features = [
"Win32_Foundation",
"Win32_Graphics_Gdi",
"Win32_Security",
"Win32_Storage_FileSystem",
"Win32_System_Com",
"Win32_System_Com_StructuredStorage",
"Win32_System_IO",
"Win32_System_LibraryLoader",
"Win32_System_Ole",
"Win32_System_Threading",
"Win32_System_Variant",
"Win32_UI_Shell",
"Win32_UI_Shell_Common",
"Win32_UI_Shell_PropertiesSystem",
"Win32_UI_WindowsAndMessaging",
"Win32_System_Power",
"Win32_System_RemoteDesktop",
"Win32_System_WindowsProgramming",
]
[lints.clippy]
dbg_macro = "deny"
declare_interior_mutable_const = "deny"
disallowed_methods = "deny"
large_enum_variant = "allow"
let_underscore_future = "allow"
nonminimal_bool = "allow"
redundant_clone = "deny"
single_range_in_vec_init = "allow"
todo = "deny"
too_many_arguments = "allow"
type_complexity = "allow"
[lints.clippy.style]
level = "allow"
priority = -1
[lints.rust.unexpected_cfgs]
level = "allow"
priority = 0