Something went wrong. Try again.
Lit widget toolkit for GPUI: buttons, fields, pop-ups, menus and a text input, over a small OKLCH palette.
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122[package]name = "vampir"version = "0.4.1"edition = "2024"rust-version = "1.89"license = "MIT"description = "Lit widget toolkit for GPUI: buttons, fields, pop-ups, menus and a text input, over a small OKLCH palette."repository = "https://github.com/404oops/vampir"homepage = "https://github.com/404oops/vampir"documentation = "https://docs.rs/vampir"readme = "README.md"keywords = ["gpui", "gui", "widgets", "ui", "toolkit"]categories = ["gui"]exclude = ["docs/", ".github/", "tools/", "vendor/"]
[features]default = ["app-icon"]# Setting the application icon at runtime. The widgets need none of it, so# `default-features = false` gets back to a crate with two dependencies:## vampir = { version = "0.2", default-features = false }app-icon = ["dep:image", "dep:objc2", "dep:objc2-app-kit", "dep:objc2-foundation"]
# The command palette in a window of its own, above a host window whose# content a live native view covers (`open_command_bar`). It needs the# anchored popup windows that only the GPUI-CE vendored in this repository# implements (vendor/LOCAL_PATCHES.md), so it is off by default and a host# turning it on patches GPUI-CE the way this repository's own manifest does.command-bar-window = []
[dependencies]# gpui-ce is the community edition of Zed's GPUI (Apache-2.0): the same API,# synced from Zed and published to crates.io, which is what lets this crate be# published too. Imported as `gpui` so the code reads as GPUI code.gpui = { package = "gpui-ce", version = "0.3.0" }unicode-segmentation = "1"
# Only for `app-icon`, and only on the platform that wants them. Both are# already in the tree by way of GPUI's own backends, so on a machine that# builds GPUI at all they cost nothing to compile.[target.'cfg(target_os = "macos")'.dependencies]objc2 = { version = "0.6", optional = true }objc2-app-kit = { version = "0.3", optional = true, features = [ "NSApplication", "NSGraphics", "NSImage", "NSResponder",] }objc2-foundation = { version = "0.3", optional = true, features = ["NSData"] }
[target.'cfg(any(target_os = "linux", target_os = "freebsd"))'.dependencies]image = { version = "0.25", optional = true, default-features = false, features = [ "png",] }
[dev-dependencies]# The examples open a real window; gpui itself is platform-agnostic and the# backend lives here. `runtime_shaders` compiles the Metal shaders when the# app starts instead of at build time, so a machine with only the command line# tools — no full Xcode — can build the gallery.gpui_ce_platform = { version = "0.3.0", features = [ "font-kit", "runtime_shaders", "wayland", "x11",] }
# The gallery's Native view page embeds a real native child view, made# with the same platform crates GPUI's backends already build.raw-window-handle = "0.6"
[target.'cfg(target_os = "macos")'.dev-dependencies]objc2 = "0.6"objc2-app-kit = { version = "0.3", features = [ "NSControl", "NSGraphics", "NSProgressIndicator", "NSResponder", "NSScrollView", "NSText", "NSTextView", "NSView", "NSWindow",] }objc2-foundation = { version = "0.3", features = ["NSArray", "NSGeometry", "NSString"] }
[target.'cfg(target_os = "windows")'.dev-dependencies]windows = { version = "0.62", features = [ "Win32_Foundation", "Win32_Graphics_Gdi", "Win32_System_LibraryLoader", "Win32_UI_Input_KeyboardAndMouse", "Win32_UI_WindowsAndMessaging",] }
[target.'cfg(any(target_os = "linux", target_os = "freebsd"))'.dev-dependencies]x11rb = "0.13"
[[example]]name = "gallery"path = "examples/gallery.rs"
# Here rather than only on CI's command line, so an editor shows them too.# CI turns every warning into an error, so a lint goes in this list only# once the crate is clean of it on all three platforms.[lints.clippy]dbg_macro = "warn"todo = "warn"missing_errors_doc = "warn"
[profile.release]lto = "thin"
# GPUI-CE with the backend changes the command bar window needs: see# vendor/README.md. Never published: `vendor/` is excluded above, and a# `[patch]` section only ever applies to the workspace that declares it.[patch.crates-io]gpui-ce = { path = "vendor/gpui-ce" }gpui_ce_macos = { path = "vendor/gpui_ce_macos" }gpui_ce_windows = { path = "vendor/gpui_ce_windows" }gpui_ce_linux = { path = "vendor/gpui_ce_linux" }