1macro_rules! env_is_set {
10 ($name:literal) => {{
11 static SET: std::sync::OnceLock<bool> = std::sync::OnceLock::new();
12 *SET.get_or_init(|| std::env::var_os($name).is_some())
13 }};
14}
15
16pub mod app_path;
17pub mod platform_time;
18
19pub mod assets;
20pub mod audio;
21pub mod emote;
22#[cfg(not(all(target_arch = "wasm32", target_os = "unknown")))]
23pub mod emote_key;
24pub mod image_manager;
25#[cfg(not(any(target_os = "horizon", target_os = "vita")))]
26pub mod ime;
27pub mod layer;
28pub mod mesh3d;
29pub mod movie;
30pub mod original_save;
31pub mod render_math;
32pub(crate) mod render_plan;
33pub mod resource;
34pub mod runtime;
35pub mod text_render;
36#[cfg(target_arch = "wasm32")]
37pub mod wasm_entry;
38#[cfg(target_arch = "wasm32")]
39pub mod wasm_vfs;
40
41pub mod elm_code;
42
43pub mod scene_stream;
44pub mod vm;
45
46pub use siglus_assets as formats;
49
50#[cfg(not(any(target_os = "horizon", target_os = "vita")))]
51pub mod render;
52#[cfg(target_os = "horizon")]
53#[path = "render/horizon/mod.rs"]
54pub mod render;
55#[cfg(target_os = "vita")]
56#[path = "render/vita/mod.rs"]
57pub mod render;
58
59pub mod input;
60
61#[cfg(target_os = "android")]
62pub mod android_host;
63#[cfg(any(target_os = "macos", target_os = "windows", target_os = "linux"))]
64pub mod desktop_chihaya_bench;
65#[cfg(any(target_os = "macos", target_os = "windows", target_os = "linux"))]
66pub mod desktop_messagebox;
67#[cfg(any(target_os = "macos", target_os = "windows", target_os = "linux"))]
68pub mod desktop_twitter;
69pub mod host;
70#[cfg(target_os = "ios")]
71pub mod ios_host;
72#[cfg(any(target_os = "macos", target_os = "windows", target_os = "linux"))]
73pub mod pump_host;
74#[cfg(target_os = "horizon")]
75pub mod switch_host;
76
77pub mod display_ffi;
78
79#[cfg(any(target_os = "macos", target_os = "windows", target_os = "linux"))]
80pub mod desktop_config;
81#[cfg(any(target_os = "macos", target_os = "windows", target_os = "linux"))]
82pub mod desktop_icon;