# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
rust-version = "1.85"
name = "mirui"
version = "0.37.0"
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"]
gallery = []
linux-drm = [
    "dep:drm",
    "dep:drm-ffi",
    "dep:evdev",
    "dep:libc",
    "dep:signal-hook",
    "std",
]
linux-fb = [
    "dep:memmap2",
    "dep:evdev",
    "dep:libc",
    "dep:signal-hook",
    "std",
]
nuttx = [
    "dep:libc",
    "std",
]
perf = []
persistence = [
    "dep:serde",
    "dep:postcard",
]
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 = "gallery_demo_render_snapshot"
path = "tests/gallery_demo_render_snapshot.rs"

[[test]]
name = "gallery_demos"
path = "tests/gallery_demos.rs"

[[test]]
name = "gray_atlas_fixture"
path = "tests/gray_atlas_fixture.rs"

[[test]]
name = "gray_render_regression"
path = "tests/gray_render_regression.rs"

[[test]]
name = "id_attr"
path = "tests/id_attr.rs"

[[test]]
name = "layout_tests"
path = "tests/layout_tests.rs"

[[test]]
name = "match_syntax"
path = "tests/match_syntax.rs"

[[test]]
name = "multi_font_bundle"
path = "tests/multi_font_bundle.rs"

[[test]]
name = "niche"
path = "tests/niche.rs"

[[test]]
name = "on_handler_callback_form"
path = "tests/on_handler_callback_form.rs"

[[test]]
name = "on_handler_return"
path = "tests/on_handler_return.rs"

[[test]]
name = "on_handlers"
path = "tests/on_handlers.rs"

[[test]]
name = "perf_report_builder"
path = "tests/perf_report_builder.rs"

[[test]]
name = "plugin_hooks"
path = "tests/plugin_hooks.rs"

[[test]]
name = "sdf_atlas_fixture"
path = "tests/sdf_atlas_fixture.rs"

[[test]]
name = "sdf_render_regression"
path = "tests/sdf_render_regression.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 = "slider_business_events"
path = "tests/slider_business_events.rs"

[[test]]
name = "tabbar_selection_events"
path = "tests/tabbar_selection_events.rs"

[[test]]
name = "theme_swap_visual"
path = "tests/theme_swap_visual.rs"

[[test]]
name = "theme_tests"
path = "tests/theme_tests.rs"

[[test]]
name = "timer_macro"
path = "tests/timer_macro.rs"

[[test]]
name = "toggle_business_events"
path = "tests/toggle_business_events.rs"

[[test]]
name = "typed_widget"
path = "tests/typed_widget.rs"

[[test]]
name = "typed_widget_visual"
path = "tests/typed_widget_visual.rs"

[[test]]
name = "ui_diagnostics_fail"
path = "tests/ui_diagnostics_fail.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.libc]
version = "0.2"
optional = true
default-features = false

[dependencies.lyon]
version = "1.0"
optional = true

[dependencies.mirui-macros]
version = "0.37.0"

[dependencies.mirx]
version = "0.37.0"

[dependencies.pollster]
version = "0.4"
optional = true

[dependencies.postcard]
version = "1"
features = ["alloc"]
optional = true
default-features = false

[dependencies.rustc-hash]
version = "2"
default-features = false

[dependencies.sdl2]
version = "0.37"
optional = true

[dependencies.sdl2-sys]
version = "0.37"
optional = true

[dependencies.serde]
version = "1"
features = [
    "derive",
    "alloc",
]
optional = true
default-features = false

[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",
    "Storage",
    "console",
]
optional = true

[target.'cfg(target_os = "linux")'.dependencies.drm]
version = "0.14"
optional = true

[target.'cfg(target_os = "linux")'.dependencies.drm-ffi]
version = "0.9"
optional = true

[target.'cfg(target_os = "linux")'.dependencies.evdev]
version = "0.13"
optional = true

[target.'cfg(target_os = "linux")'.dependencies.memmap2]
version = "0.9"
optional = true

[target.'cfg(target_os = "linux")'.dependencies.signal-hook]
version = "0.3"
optional = true

[profile.release]
opt-level = "z"
lto = true
codegen-units = 1
panic = "abort"
strip = true
