[package]
edition = "2021"
name = "uzor-framework"
version = "1.5.46"
authors = ["ZENG3LD"]
build = false
exclude = ["tests/"]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "uzor app engine: one kernel of single-writer engines driven by a typed input bus"
homepage = "https://github.com/UZOR-dev/uzor"
readme = "README.md"
keywords = [
"ui",
"rendering",
"framework",
"headless",
"gpu",
]
categories = [
"gui",
"rendering",
"graphics",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/UZOR-dev/uzor"
[features]
a11y-dom = ["web"]
android-game-activity = [
"native-lean",
"winit/android-game-activity",
]
android-native-activity = [
"native-lean",
"winit/android-native-activity",
]
automation = [
"dep:uzor-render-tiny-skia",
"dep:png",
]
chrome = []
default = [
"layout-blob",
"chrome",
]
dev-control = [
"automation",
"dep:uzor-devtools",
"dep:serde_json",
"dep:base64",
]
inspector = ["uzor/inspector"]
layout-blob = ["dep:postcard"]
monitor = [
"web",
"dep:serde_json",
]
native = [
"native-lean",
"uzor-render-hub/default",
]
native-core = [
"dep:winit",
"dep:x11-dl",
"dep:uzor-window-desktop",
"dep:uzor-render-hub",
"dep:arboard",
"dep:tray-icon",
"dep:gtk",
"dep:objc2",
"dep:objc2-foundation",
"dep:objc2-app-kit",
"dep:uzor-render-tiny-skia",
"dep:png",
"dep:log",
"dep:color",
"dep:vello",
]
native-lean = [
"native-core",
"uzor-render-hub/vello-gpu",
"uzor-render-hub/tiny-skia",
]
web = [
"dep:wasm-bindgen",
"dep:js-sys",
"dep:web-sys",
"dep:uzor-render-canvas2d",
"dep:uzor-window-web",
"dep:log",
]
[lib]
name = "uzor_framework"
path = "src/lib.rs"
[[example]]
name = "app_chrome"
path = "examples/app_chrome.rs"
required-features = ["native"]
[[example]]
name = "demo_native"
path = "examples/demo/main_native.rs"
required-features = ["native"]
[[example]]
name = "demo_web"
crate-type = ["cdylib"]
path = "examples/demo/main_web.rs"
required-features = ["web"]
[[example]]
name = "dom_background_clip"
path = "examples/dom_background_clip.rs"
required-features = ["native"]
[[example]]
name = "dom_chart_icons"
path = "examples/dom_chart_icons.rs"
required-features = ["native"]
[[example]]
name = "dom_number"
path = "examples/dom_number.rs"
required-features = ["native"]
[[example]]
name = "dom_scroll"
path = "examples/dom_scroll.rs"
required-features = ["native"]
[[example]]
name = "dom_shadow_offset"
path = "examples/dom_shadow_offset.rs"
required-features = ["native"]
[[example]]
name = "dom_toolbar"
path = "examples/dom_toolbar.rs"
required-features = ["native"]
[[example]]
name = "image_viewer"
path = "examples/image_viewer.rs"
required-features = ["native"]
[[example]]
name = "monitor_web"
crate-type = ["cdylib"]
path = "examples/monitor/main_web.rs"
required-features = ["monitor"]
[[example]]
name = "native_two_windows"
path = "examples/native_two_windows.rs"
required-features = ["native"]
[dependencies.arc-swap]
version = "1.7"
[dependencies.base64]
version = "0.22"
optional = true
[dependencies.color]
version = "0.3"
optional = true
[dependencies.js-sys]
version = "0.3"
optional = true
[dependencies.log]
version = "0.4"
optional = true
[dependencies.png]
version = "0.17"
optional = true
[dependencies.postcard]
version = "1"
features = ["alloc"]
optional = true
default-features = false
[dependencies.serde]
version = "1.0"
features = ["derive"]
[dependencies.serde_json]
version = "1"
optional = true
[dependencies.smallvec]
version = "1.10"
[dependencies.thiserror]
version = "1.0"
[dependencies.uzor]
version = "1.5.41"
features = ["testing"]
default-features = false
[dependencies.uzor-framework-macros]
version = "1.5.41"
[dependencies.uzor-render-canvas2d]
version = "1.5.41"
optional = true
[dependencies.uzor-render-hub]
version = "1.5.41"
optional = true
default-features = false
[dependencies.uzor-render-tiny-skia]
version = "1.5.41"
optional = true
[dependencies.uzor-window-desktop]
version = "1.5.41"
optional = true
[dependencies.uzor-window-web]
version = "1.5.41"
optional = true
[dependencies.vello]
version = "0.9"
optional = true
[dependencies.wasm-bindgen]
version = "0.2"
optional = true
[dependencies.web-sys]
version = "0.3"
features = [
"AddEventListenerOptions",
"Blob",
"CanvasRenderingContext2d",
"Clipboard",
"ClipboardEvent",
"CompositionEvent",
"CssStyleDeclaration",
"DataTransfer",
"Document",
"DomRect",
"DragEvent",
"Element",
"Event",
"EventTarget",
"File",
"FileList",
"FileReader",
"HtmlCanvasElement",
"HtmlElement",
"KeyboardEvent",
"Location",
"MediaQueryList",
"MouseEvent",
"Navigator",
"Performance",
"ResizeObserver",
"ResizeObserverEntry",
"Touch",
"TouchEvent",
"TouchList",
"VisibilityState",
"WheelEvent",
"Window",
]
optional = true
[dependencies.winit]
version = "0.30"
optional = true
[dev-dependencies.tiny-skia]
version = "0.11"
[dev-dependencies.uzor]
version = "1.5.41"
features = [
"testing",
"flow-flex",
"flow-grid",
]
default-features = false
[dev-dependencies.uzor-render-tiny-skia]
version = "1.5.41"
[target.'cfg(all(unix, not(any(target_os = "macos", target_os = "ios", target_os = "android")), not(target_arch = "wasm32")))'.dependencies.x11-dl]
version = "2.21"
optional = true
[target.'cfg(not(any(target_os = "ios", target_os = "android")))'.dependencies.arboard]
version = "3"
optional = true
[target.'cfg(not(any(target_os = "ios", target_os = "android")))'.dependencies.tray-icon]
version = ">=0.19,<0.21"
optional = true
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.uzor-devtools]
version = "1.5.41"
optional = true
[target.'cfg(target_os = "linux")'.dependencies.gtk]
version = "0.18"
optional = true
[target.'cfg(target_os = "macos")'.dependencies.objc2]
version = "0.5"
optional = true
[target.'cfg(target_os = "macos")'.dependencies.objc2-app-kit]
version = "0.2"
features = [
"NSApplication",
"NSResponder",
"NSImage",
]
optional = true
[target.'cfg(target_os = "macos")'.dependencies.objc2-foundation]
version = "0.2"
features = [
"NSData",
"NSThread",
]
optional = true