[package]
edition = "2024"
rust-version = "1.85"
name = "mirui"
version = "0.25.2"
authors = ["Benign X <1341398182@qq.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A lightweight, no_std ECS-driven UI framework for embedded, desktop, and WebAssembly"
homepage = "https://github.com/W-Mai/mirui"
documentation = "https://docs.rs/mirui"
readme = "README.md"
keywords = [
"ui",
"gui",
"ecs",
"embedded",
"no-std",
]
categories = [
"gui",
"embedded",
]
license = "MIT"
repository = "https://github.com/W-Mai/mirui"
[features]
default = ["quad-aa"]
perf = []
quad-aa = []
sdl = [
"dep:sdl2",
"std",
]
sdl-gpu = [
"sdl",
"dep:sdl2-sys",
"dep:lyon",
]
std = [
"critical-section/std",
"dep:web-time",
]
sync-cache = []
web-canvas = [
"dep:web-sys",
"dep:js-sys",
"dep:wasm-bindgen",
"dep:wasm-bindgen-futures",
"std",
]
wgpu = [
"dep:wgpu",
"dep:winit",
"dep:bytemuck",
"dep:lyon",
"dep:pollster",
"std",
]
[lib]
name = "mirui"
path = "src/lib.rs"
[[test]]
name = "app_runner"
path = "tests/app_runner.rs"
[[test]]
name = "budget_frame_order"
path = "tests/budget_frame_order.rs"
[[test]]
name = "compose_backend_basic"
path = "tests/compose_backend_basic.rs"
[[test]]
name = "compose_backend_fail"
path = "tests/compose_backend_fail.rs"
[[test]]
name = "dirty_tests"
path = "tests/dirty_tests.rs"
[[test]]
name = "draw_tests"
path = "tests/draw_tests.rs"
[[test]]
name = "ecs_tests"
path = "tests/ecs_tests.rs"
[[test]]
name = "event_tests"
path = "tests/event_tests.rs"
[[test]]
name = "layout_tests"
path = "tests/layout_tests.rs"
[[test]]
name = "perf_report_builder"
path = "tests/perf_report_builder.rs"
[[test]]
name = "plugin_hooks"
path = "tests/plugin_hooks.rs"
[[test]]
name = "sdl_poll_event"
path = "tests/sdl_poll_event.rs"
[[test]]
name = "sim_demo_widgets"
path = "tests/sim_demo_widgets.rs"
[[test]]
name = "theme_tests"
path = "tests/theme_tests.rs"
[[test]]
name = "timer_macro"
path = "tests/timer_macro.rs"
[[test]]
name = "widget_tests"
path = "tests/widget_tests.rs"
[dependencies.bytemuck]
version = "1"
features = ["derive"]
optional = true
[dependencies.critical-section]
version = "1.2"
default-features = false
[dependencies.hashbrown]
version = "0.15"
features = ["default-hasher"]
default-features = false
[dependencies.lyon]
version = "1.0"
optional = true
[dependencies.mirui-macros]
version = "0.25.2"
[dependencies.pollster]
version = "0.4"
optional = true
[dependencies.sdl2]
version = "0.37"
optional = true
[dependencies.sdl2-sys]
version = "0.37"
optional = true
[dependencies.web-time]
version = "1.1"
optional = true
[dependencies.wgpu]
version = "29"
optional = true
[dependencies.winit]
version = "0.30"
optional = true
[dev-dependencies.trybuild]
version = "1"
[target.'cfg(target_arch = "wasm32")'.dependencies.js-sys]
version = "0.3.99"
optional = true
[target.'cfg(target_arch = "wasm32")'.dependencies.wasm-bindgen]
version = "0.2.122"
optional = true
[target.'cfg(target_arch = "wasm32")'.dependencies.wasm-bindgen-futures]
version = "0.4.72"
optional = true
[target.'cfg(target_arch = "wasm32")'.dependencies.web-sys]
version = "0.3.99"
features = [
"Window",
"Document",
"Element",
"HtmlElement",
"HtmlCanvasElement",
"CanvasRenderingContext2d",
"CssStyleDeclaration",
"DomMatrix",
"OffscreenCanvas",
"OffscreenCanvasRenderingContext2d",
"ImageData",
"Path2d",
"MouseEvent",
"PointerEvent",
"WheelEvent",
"KeyboardEvent",
"TouchEvent",
"Touch",
"TouchList",
"DomRect",
"EventTarget",
"Event",
"console",
]
optional = true
[profile.release]
opt-level = "z"
lto = true
codegen-units = 1
panic = "abort"
strip = true