winio_ui_app_kit/lib.rs
1//! AppKit backend for winio.
2
3#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
4#![cfg(target_os = "macos")]
5
6use winio_callback::Runnable;
7
8pub(crate) struct GlobalRuntime;
9
10impl Runnable for GlobalRuntime {
11 #[inline]
12 fn run() {
13 RUNTIME.with(|runtime| runtime.run())
14 }
15}
16
17scoped_tls::scoped_thread_local!(pub(crate) static RUNTIME: Runtime);
18
19mod runtime;
20pub use runtime::*;
21
22mod ui;
23pub use ui::*;