[workspace]
members = [".", "openkit-macros"]
[package]
name = "openkit"
version = "0.1.3"
edition = "2024"
description = "A cross-platform CSS-styled UI framework for Rust"
license = "MIT OR Apache-2.0"
repository = "https://github.com/pegasusheavy/openkit"
homepage = "https://github.com/pegasusheavy/openkit"
documentation = "https://docs.rs/openkit"
readme = "README.md"
authors = ["Pegasus Heavy Industries"]
keywords = ["gui", "ui", "css", "cross-platform", "desktop"]
categories = ["gui", "rendering"]
rust-version = "1.85"
[features]
default = ["gpu", "macros", "native-platform"]
gpu = ["wgpu"]
macros = ["openkit-macros"]
native-platform = []
wayland = ["winit/wayland", "winit/wayland-csd-adwaita"]
x11 = ["winit/x11"]
gpu-profiling = ["gpu"]
hdr = ["gpu"]
windows = []
macos = []
linux = ["x11", "wayland"]
freebsd = ["x11"]
[dependencies]
openkit-macros = { version = "0.1.3", path = "openkit-macros", optional = true }
winit = "0.30"
wgpu = { version = "23", optional = true }
bytemuck = { version = "1", features = ["derive"] }
tiny-skia = "0.11"
cosmic-text = "0.12"
cssparser = "0.34"
image = { version = "0.25", default-features = false, features = ["png", "jpeg", "webp"] }
palette = "0.7"
log = "0.4"
env_logger = "0.11"
thiserror = "2"
pollster = "0.4"
raw-window-handle = "0.6"
ordered-float = "4"
smallvec = "1"
unicode-segmentation = "1"
[dev-dependencies]
pretty_assertions = "1"
criterion = { version = "0.5", features = ["html_reports"] }
[[bench]]
name = "css_parsing"
harness = false
[[bench]]
name = "layout"
harness = false
[[bench]]
name = "rendering"
harness = false
[[bench]]
name = "text"
harness = false
[[bench]]
name = "widget_tree"
harness = false
[profile.bench]
lto = true
codegen-units = 1
[profile.release]
lto = true
codegen-units = 1
panic = "abort"
[[example]]
name = "hello_world"
path = "examples/hello_world.rs"
[[example]]
name = "theme_toggle"
path = "examples/theme_toggle.rs"
[[example]]
name = "angular_style"
path = "examples/angular_style.rs"
[[example]]
name = "custom_css"
path = "examples/custom_css.rs"