[package]
edition = "2024"
name = "rgpui"
version = "1.2.0"
build = "build.rs"
publish = true
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "GUI UI framework"
readme = "README.md"
keywords = [
"desktop",
"gui",
"immediate",
]
categories = ["gui"]
license = "Apache-2.0"
repository = "https://github.com/launcher-rs/rgpui"
[features]
bundled-themes = []
charts = []
default = [
"font-kit",
"wayland",
"x11",
"windows-manifest",
]
dom-backend = []
editor = ["lsp"]
effects = []
input-latency-histogram = []
inspector = ["rgpui-macros/inspector"]
leak-detection = []
lsp = ["dep:lsp-types"]
qr-code = ["dep:qrcode"]
reqwest = [
"dep:reqwest",
"dep:tokio",
]
screen-capture = ["scap"]
test-support = [
"leak-detection",
"wayland",
"x11",
"proptest",
"dep:git2",
]
tls = [
"dep:rustls",
"dep:rustls-platform-verifier",
]
tokio = ["dep:tokio"]
tree-sitter = [
"dep:tree-sitter",
"dep:tree-sitter-highlight",
"dep:tree-sitter-rust",
]
tree-sitter-json = [
"tree-sitter",
"dep:tree-sitter-json",
]
tree-sitter-toml = [
"tree-sitter",
"dep:tree-sitter-toml-ng",
]
wayland = []
webview = ["dep:wry"]
webview-inspector = [
"webview",
"wry/devtools",
]
windows-manifest = ["dep:embed-resource"]
x11 = ["scap?/x11"]
[lib]
name = "rgpui"
path = "src/rgpui.rs"
doctest = false
[[test]]
name = "action_macros"
path = "tests/action_macros.rs"
[[test]]
name = "gpu_struct_layout"
path = "tests/gpu_struct_layout.rs"
[[test]]
name = "macros_derive_context"
path = "tests/macros_derive_context.rs"
[[test]]
name = "macros_derive_inspector_reflection"
path = "tests/macros_derive_inspector_reflection.rs"
[[test]]
name = "macros_render_test"
path = "tests/macros_render_test.rs"
[dependencies.accesskit]
version = "0.24.0"
features = ["enumn"]
[dependencies.anyhow]
version = "1.0"
[dependencies.async-channel]
version = "2.5.0"
[dependencies.async-task]
version = "4.7"
[dependencies.backtrace]
version = "0.3"
[dependencies.bitflags]
version = "2.13.1"
[dependencies.bytes]
version = "1.12.1"
[dependencies.chrono]
version = "0.4"
features = [
"serde",
"wasmbind",
]
[dependencies.crossbeam-channel]
version = "0.5"
[dependencies.ctor]
version = "1.0.13"
[dependencies.derive_more]
version = "2.1.1"
features = [
"add",
"add_assign",
"deref",
"deref_mut",
"display",
"from_str",
"mul",
"mul_assign",
"not",
]
[dependencies.dirs]
version = "6.0"
[dependencies.dunce]
version = "1.0"
[dependencies.etagere]
version = "0.3"
[dependencies.futures]
version = "0.3"
[dependencies.futures-concurrency]
version = "7.7.1"
[dependencies.futures-lite]
version = "2.6"
[dependencies.git2]
version = "0.21.0"
features = ["vendored-libgit2"]
optional = true
default-features = false
[dependencies.globset]
version = "0.4"
[dependencies.hdrhistogram]
version = "7"
[dependencies.heapless]
version = "0.9.3"
[dependencies.http]
version = "1.5"
[dependencies.http-body]
version = "1.1"
[dependencies.image]
version = "0.25.10"
[dependencies.indexmap]
version = "2.14.1"
features = ["serde"]
[dependencies.instant]
version = "0.1"
features = ["wasm-bindgen"]
[dependencies.inventory]
version = "0.3.24"
[dependencies.itertools]
version = "0.15.0"
[dependencies.log]
version = "0.4"
features = [
"kv_unstable_serde",
"serde",
]
[dependencies.lsp-types]
version = "0.97.0"
features = ["proposed"]
optional = true
[dependencies.lyon]
version = "1.0"
[dependencies.num_cpus]
version = "1.17"
[dependencies.once_cell]
version = "1.21.4"
[dependencies.parking]
version = "2.2.1"
[dependencies.parking_lot]
version = "0.12.5"
[dependencies.paste]
version = "1"
[dependencies.percent-encoding]
version = "2.3.2"
[dependencies.pin-project]
version = "1.1.13"
[dependencies.pollster]
version = "1.0.1"
[dependencies.postage]
version = "0.5"
features = ["futures-traits"]
[dependencies.profiling]
version = "1"
[dependencies.proptest]
version = "1.11.0"
features = ["attr-macro"]
optional = true
[dependencies.qrcode]
version = "0.14"
optional = true
[dependencies.rand]
version = "0.10"
[dependencies.raw-window-handle]
version = "0.6"
[dependencies.regex]
version = "1.13"
[dependencies.reqwest]
version = "0.13"
features = [
"json",
"charset",
"http2",
"multipart",
"socks",
"stream",
]
optional = true
[dependencies.resvg]
version = "0.48.1"
features = [
"text",
"system-fonts",
"memmap-fonts",
"raster-images",
]
default-features = false
[dependencies.rgpui-macros]
version = "1.2.0"
[dependencies.ropey]
version = "=2.0.0-beta.1"
features = [
"metric_lines_lf",
"metric_utf16",
]
[dependencies.rust-embed]
version = "8.12"
features = ["include-exclude"]
[dependencies.rustc-hash]
version = "2.1.3"
[dependencies.rustls]
version = "0.23.43"
optional = true
[dependencies.rustls-platform-verifier]
version = "0.7.0"
optional = true
[dependencies.schemars]
version = "1.2.2"
features = ["indexmap2"]
[dependencies.seahash]
version = "4.1"
[dependencies.serde]
version = "1.0.229"
features = [
"derive",
"rc",
]
[dependencies.serde_json]
version = "1.0.151"
features = [
"preserve_order",
"raw_value",
]
[dependencies.serde_json_lenient]
version = "0.2"
features = [
"preserve_order",
"raw_value",
]
[dependencies.serde_repr]
version = "0.1"
[dependencies.serde_urlencoded]
version = "0.7"
[dependencies.sha2]
version = "0.11"
[dependencies.shlex]
version = "2.0.1"
[dependencies.slotmap]
version = "1.1.1"
[dependencies.smallvec]
version = "1.16"
features = [
"union",
"const_new",
]
[dependencies.smol_str]
version = "0.3.6"
[dependencies.spin]
version = "0.12.3"
[dependencies.stacksafe]
version = "1.0.3"
[dependencies.strum]
version = "0.28"
features = ["derive"]
[dependencies.taffy]
version = "=0.10.1"
[dependencies.take-until]
version = "0.2.0"
[dependencies.thiserror]
version = "2.0"
[dependencies.tokio]
version = "1"
features = [
"rt",
"rt-multi-thread",
"time",
"rt",
"rt-multi-thread",
"time",
"fs",
"io-util",
]
optional = true
[dependencies.tracing]
version = "0.1"
[dependencies.tree-sitter]
version = "0.25"
optional = true
[dependencies.tree-sitter-highlight]
version = "0.25"
optional = true
[dependencies.tree-sitter-json]
version = "0.24"
optional = true
[dependencies.tree-sitter-rust]
version = "0.24"
optional = true
[dependencies.tree-sitter-toml-ng]
version = "0.7"
optional = true
[dependencies.ttf-parser]
version = "0.25"
[dependencies.unicase]
version = "2.9"
[dependencies.unicode-segmentation]
version = "1.13"
[dependencies.url]
version = "2.5.8"
[dependencies.usvg]
version = "0.48.1"
default-features = false
[dependencies.uuid]
version = "1.26.0"
features = [
"v4",
"v5",
"v7",
"serde",
]
[dependencies.waker-fn]
version = "1.2.0"
[dependencies.web-time]
version = "1.1.0"
[dependencies.wry]
version = "0.56.1"
optional = true
[dev-dependencies.backtrace]
version = "0.3"
[dev-dependencies.criterion]
version = "0.8"
features = ["html_reports"]
[dev-dependencies.env_logger]
version = "0.11"
[dev-dependencies.lyon]
version = "1.0"
features = ["extra"]
[dev-dependencies.pretty_assertions]
version = "1.4.1"
features = ["unstable"]
[dev-dependencies.rand]
version = "0.10"
[build-dependencies.embed-resource]
version = "3.0"
optional = true
[target.'cfg(any(target_os = "linux", target_os = "freebsd", target_os = "macos"))'.dependencies.pathfinder_geometry]
version = "0.5"
[target.'cfg(any(target_os = "linux", target_os = "freebsd", target_os = "windows"))'.dependencies.scap]
version = "0.1"
optional = true
default-features = false
package = "scap-rs"
[target.'cfg(not(target_family = "wasm"))'.dependencies.async-compression]
version = "0.4"
features = [
"bzip2",
"gzip",
"futures-io",
]
[target.'cfg(not(target_family = "wasm"))'.dependencies.async-fs]
version = "2.2"
[target.'cfg(not(target_family = "wasm"))'.dependencies.async-std]
version = "1.13"
features = ["unstable"]
[target.'cfg(not(target_family = "wasm"))'.dependencies.async-tar]
version = "0.6"
[target.'cfg(not(target_family = "wasm"))'.dependencies.async_zip]
version = "0.0.19"
features = [
"deflate",
"deflate64",
]
[target.'cfg(not(target_family = "wasm"))'.dependencies.rayon]
version = "1.12"
[target.'cfg(not(target_family = "wasm"))'.dependencies.smol]
version = "2.0"
[target.'cfg(not(target_family = "wasm"))'.dependencies.tempfile]
version = "3.27.0"
[target.'cfg(not(target_family = "wasm"))'.dependencies.walkdir]
version = "2.5"
[target.'cfg(not(target_family = "wasm"))'.dependencies.which]
version = "8.0.6"
[target.'cfg(not(target_family = "wasm"))'.dev-dependencies.proptest]
version = "1.11.0"
features = ["attr-macro"]
[target.'cfg(target_family = "wasm")'.dependencies.getrandom]
version = "0.4.3"
features = ["wasm_js"]
[target.'cfg(target_family = "wasm")'.dependencies.uuid]
version = "1.26.0"
features = [
"v4",
"v5",
"v7",
"serde",
"js",
]
[target.'cfg(target_family = "wasm")'.dev-dependencies.wasm-bindgen]
version = "0.2.127"
[target.'cfg(target_os = "macos")'.dependencies.block]
version = "0.1"
[target.'cfg(target_os = "macos")'.dependencies.cocoa]
version = "0.26.1"
[target.'cfg(target_os = "macos")'.dependencies.cocoa-foundation]
version = "0.2.1"
[target.'cfg(target_os = "macos")'.dependencies.core-foundation]
version = "0.10.1"
[target.'cfg(target_os = "macos")'.dependencies.core-foundation-sys]
version = "0.8.7"
[target.'cfg(target_os = "macos")'.dependencies.core-graphics]
version = "0.24"
[target.'cfg(target_os = "macos")'.dependencies.core-text]
version = "21"
[target.'cfg(target_os = "macos")'.dependencies.core-video]
version = "=0.5.2"
features = ["metal"]
[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.foreign-types]
version = "0.5"
[target.'cfg(target_os = "macos")'.dependencies.log]
version = "0.4"
features = [
"kv_unstable_serde",
"serde",
]
[target.'cfg(target_os = "macos")'.dependencies.mach2]
version = "0.7"
[target.'cfg(target_os = "macos")'.dependencies.metal]
version = "0.33"
[target.'cfg(target_os = "macos")'.dependencies.objc]
version = "0.2"
[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 = "macos")'.build-dependencies.bindgen]
version = "0.72"
[target.'cfg(target_os = "macos")'.build-dependencies.cbindgen]
version = "0.29.4"
default-features = false
[target.'cfg(target_os = "windows")'.dependencies.tendril]
version = "0.5.1"
[target.'cfg(target_os = "windows")'.dependencies.windows]
version = "0.62"
features = [
"Foundation_Numerics",
"Globalization_DateTimeFormatting",
"Storage_Search",
"Storage_Streams",
"System_Threading",
"UI_ViewManagement",
"Wdk_System_SystemServices",
"Win32_Foundation",
"Win32_Globalization",
"Win32_Graphics_Direct3D",
"Win32_Graphics_Direct3D11",
"Win32_Graphics_Direct3D_Fxc",
"Win32_Graphics_DirectComposition",
"Win32_Graphics_DirectWrite",
"Win32_Graphics_DirectManipulation",
"Win32_Graphics_Dwm",
"Win32_Graphics_Dxgi",
"Win32_Graphics_Dxgi_Common",
"Win32_Graphics_Gdi",
"Win32_Graphics_Imaging",
"Win32_Graphics_Hlsl",
"Win32_Networking_WinSock",
"Win32_Security",
"Win32_Security_Credentials",
"Win32_Security_Cryptography",
"Win32_Storage_FileSystem",
"Win32_System_Com",
"Win32_System_Com_StructuredStorage",
"Win32_System_Console",
"Win32_System_Diagnostics_Debug",
"Win32_System_DataExchange",
"Win32_System_IO",
"Win32_System_LibraryLoader",
"Win32_System_Memory",
"Win32_System_Ole",
"Win32_System_Performance",
"Win32_System_Pipes",
"Win32_System_RestartManager",
"Win32_System_SystemInformation",
"Win32_System_SystemServices",
"Win32_System_Threading",
"Win32_System_Variant",
"Win32_System_WinRT",
"Win32_UI_Controls",
"Win32_UI_HiDpi",
"Win32_UI_Input_Ime",
"Win32_UI_Input_KeyboardAndMouse",
"Win32_UI_Input_Pointer",
"Win32_UI_Shell",
"Win32_UI_Shell_Common",
"Win32_UI_Shell_PropertiesSystem",
"Win32_UI_WindowsAndMessaging",
"Win32_Media",
"Win32_Foundation",
"Win32_System_Threading",
"Win32_Security",
"Win32_System_Power",
]
[target."cfg(unix)".dependencies.command-fds]
version = "0.3.3"
[target."cfg(unix)".dependencies.libc]
version = "0.2"
[target."cfg(unix)".dependencies.nix]
version = "0.31"
features = ["user"]
[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.linker_messages]
level = "allow"
priority = 0
[lints.rust.unexpected_cfgs]
level = "allow"
priority = 0