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