mgui_runtime/lib.rs
1//! mgui-runtime — 平台无关渲染运行时(Runner API 见 `app`)
2//!
3//! 注意:文本服务(parley/swash/atlas/TextRenderObject)已迁至 `mgui-text`,
4//! 任务执行器在 `mgui-task`;本 crate 通过 re-export 保持旧路径可用。
5//!
6//! - `renderer`:多 layer 合成渲染器(wgpu,不依赖 winit)
7//! - `accessibility`:语义树 → AccessKit 数据与 action 路由(不创建 winit Adapter)
8//! - `profile`:帧耗时采样
9//! - `app`:Runner 接口/配置(desktop 事件循环在 `mgui-shell-desktop`)
10//! - `task`:UI 线程本地异步任务执行器(re-export)
11//!
12//! GPU surface/窗口/事件循环在 `mgui-shell-desktop`;本 crate 不依赖 winit。
13
14#![forbid(unsafe_code)]
15
16pub mod accessibility;
17pub mod app;
18mod backend_info;
19pub use backend_info::ImageTextureStats;
20pub mod gpu_profiler;
21pub mod profile;
22pub mod renderer;
23pub mod startup;
24/// UI 线程本地任务执行器(实现在 `mgui-task`)
25pub use mgui_task as task;
26/// 平台无关文本服务(实现在 `mgui-text`)
27pub use mgui_text::{text, text_field};