[package]
edition = "2024"
name = "bite-gpui"
version = "1.21.0"
authors = ["Nathan Sobo <nathan@zed.dev>"]
build = "build.rs"
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/bite-gpui/bite-gpui"
resolver = "2"
[package.metadata.cargo-shear]
ignored = [
"bindgen",
"font-kit",
]
[package.metadata.bite]
source = "https://github.com/bite-gpui/bite-gpui.git"
branch = "bite_v1.21.0"
commit = "30ff1dc2a8ba84b26d5af4d1240d867a84c5f88a"
upstream = "1.21.0"
amendment = 0
original = "gpui"
[features]
bench = ["bench-support"]
bench-support = [
"gpui_authoring/bench-support",
"gpui_macos?/bench-support",
]
default = ["platform"]
font-kit = [
"dep:font-kit",
"gpui_macos?/font-kit",
]
inspector = ["gpui_authoring/inspector"]
leak-detection = ["gpui_authoring/leak-detection"]
platform = [
"dep:gpui_linux",
"dep:gpui_macos",
"dep:gpui_windows",
"dep:gpui_web",
"font-kit",
"wayland",
"x11",
"windows-manifest",
]
profiler = ["gpui_authoring/profiler"]
screen-capture = [
"scap",
"gpui_platform/screen-capture",
"gpui_linux?/screen-capture",
"gpui_macos?/screen-capture",
"gpui_windows?/screen-capture",
]
stacker = ["gpui_authoring/stacker"]
test-support = [
"gpui_authoring/test-support",
"gpui_macos?/test-support",
"gpui_windows?/test-support",
"wayland",
"x11",
]
wayland = [
"gpui_platform/wayland",
"gpui_linux?/wayland",
]
windows-manifest = ["dep:embed-resource"]
x11 = [
"scap?/x11",
"gpui_platform/x11",
"gpui_linux?/x11",
]
[lib]
name = "gpui"
path = "src/gpui.rs"
doctest = false
[[example]]
name = "a11y"
path = "examples/a11y.rs"
[[example]]
name = "active_state_bug"
path = "examples/active_state_bug.rs"
[[example]]
name = "anchor"
path = "examples/anchor.rs"
[[example]]
name = "animation"
path = "examples/animation.rs"
[[example]]
name = "data_table"
path = "examples/data_table.rs"
[[example]]
name = "drag_drop"
path = "examples/drag_drop.rs"
[[example]]
name = "focus_visible"
path = "examples/focus_visible.rs"
[[example]]
name = "frame_pipeline_decorator"
path = "examples/frame_pipeline_decorator.rs"
[[example]]
name = "gif_viewer"
path = "examples/gif_viewer.rs"
[[example]]
name = "gradient"
path = "examples/gradient.rs"
[[example]]
name = "grid_layout"
path = "examples/grid_layout.rs"
[[example]]
name = "hello_world"
path = "examples/hello_world.rs"
[[example]]
name = "image"
path = "examples/image/image.rs"
[[example]]
name = "image_gallery"
path = "examples/image_gallery.rs"
[[example]]
name = "image_loading"
path = "examples/image_loading.rs"
[[example]]
name = "input"
path = "examples/input.rs"
[[example]]
name = "instrumented_pipeline"
path = "examples/instrumented_pipeline.rs"
[[example]]
name = "layer_shell"
path = "examples/layer_shell.rs"
[[example]]
name = "list_example"
path = "examples/list_example.rs"
[[example]]
name = "mouse_pressure"
path = "examples/mouse_pressure.rs"
[[example]]
name = "move_entity_between_windows"
path = "examples/move_entity_between_windows.rs"
[[example]]
name = "on_window_close_quit"
path = "examples/on_window_close_quit.rs"
[[example]]
name = "opacity"
path = "examples/opacity.rs"
[[example]]
name = "ownership_post"
path = "examples/ownership_post.rs"
[[example]]
name = "painting"
path = "examples/painting.rs"
[[example]]
name = "paths_bench"
path = "examples/paths_bench.rs"
[[example]]
name = "pattern"
path = "examples/pattern.rs"
[[example]]
name = "popover"
path = "examples/popover.rs"
[[example]]
name = "scrollable"
path = "examples/scrollable.rs"
[[example]]
name = "set_menus"
path = "examples/set_menus.rs"
[[example]]
name = "shadow"
path = "examples/shadow.rs"
[[example]]
name = "svg"
path = "examples/svg/svg.rs"
[[example]]
name = "system_notifications"
path = "examples/system_notifications.rs"
[[example]]
name = "tab_stop"
path = "examples/tab_stop.rs"
[[example]]
name = "testing"
path = "examples/testing.rs"
[[example]]
name = "text"
path = "examples/text.rs"
[[example]]
name = "text_layout"
path = "examples/text_layout.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 = "view_example"
path = "examples/view_example/view_example_main.rs"
[[example]]
name = "window"
path = "examples/window.rs"
[[example]]
name = "window_movable"
path = "examples/window_movable.rs"
[[example]]
name = "window_positioning"
path = "examples/window_positioning.rs"
[[example]]
name = "window_shadow"
path = "examples/window_shadow.rs"
[[test]]
name = "action_macros"
path = "tests/action_macros.rs"
[dependencies.gpui_authoring]
version = "1.21.0"
package = "bite-gp-authoring"
[dependencies.gpui_platform]
version = "1.21.0"
package = "bite-gp-platform"
[dependencies.gpui_runtime]
version = "1.21.0"
package = "bite-gp-runtime"
[dev-dependencies.anyhow]
version = "1.0.86"
[dev-dependencies.backtrace]
version = "0.3"
[dev-dependencies.collections]
version = "1.21.0"
features = ["test-support"]
package = "bite-gp-collections"
[dev-dependencies.env_logger]
version = "0.11"
[dev-dependencies.gpui_macros]
version = "1.21.0"
package = "bite-gp-macros"
[dev-dependencies.gpui_platform]
version = "1.21.0"
features = ["test-support"]
package = "bite-gp-platform"
[dev-dependencies.gpui_util]
version = "1.21.0"
package = "bite-gp-gpui-util"
[dev-dependencies.log]
version = "0.4.16"
features = [
"kv_unstable_serde",
"serde",
]
[dev-dependencies.lyon]
version = "1.0"
features = ["extra"]
[dev-dependencies.rand]
version = "0.9"
[dev-dependencies.scheduler]
version = "1.21.0"
features = ["test-support"]
package = "bite-gp-scheduler"
[dev-dependencies.schemars]
version = "1.0"
features = ["indexmap2"]
[dev-dependencies.serde]
version = "1.0.221"
features = [
"derive",
"rc",
]
[dev-dependencies.serde_json]
version = "1.0.144"
features = [
"preserve_order",
"raw_value",
]
[dev-dependencies.unicode-segmentation]
version = "1.10"
[build-dependencies.embed-resource]
version = "3.0"
optional = true
[target.'cfg(any(target_os = "linux", target_os = "freebsd"))'.dependencies.gpui_linux]
version = "1.21.0"
optional = true
default-features = false
package = "bite-gp-linux"
[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(not(target_family = "wasm"))'.dev-dependencies.http_client]
version = "1.21.0"
features = ["test-support"]
package = "bite-gp-http-client"
[target.'cfg(not(target_family = "wasm"))'.dev-dependencies.proptest]
version = "1.11.0"
features = ["attr-macro"]
package = "proptest"
[target.'cfg(target_family = "wasm")'.dependencies.gpui_web]
version = "1.21.0"
optional = true
package = "bite-gp-web"
[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"
features = ["console"]
[target.'cfg(target_os = "macos")'.dependencies.font-kit]
version = "0.14.1-zed"
optional = true
package = "zed-font-kit"
[target.'cfg(target_os = "macos")'.dependencies.gpui_macos]
version = "1.21.0"
optional = true
default-features = false
package = "bite-gp-macos"
[target.'cfg(target_os = "macos")'.build-dependencies.bindgen]
version = "0.72"
[target.'cfg(target_os = "windows")'.dependencies.gpui_windows]
version = "1.21.0"
optional = true
default-features = false
package = "bite-gp-windows"
[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