cuqueclicker_lib/lib.rs
1//! Library crate for `cuqueclicker`.
2//!
3//! Both targets (`cuqueclicker` binary on native, the wasm cdylib for the
4//! browser build via trunk) share these modules. Native-only modules
5//! (`app`, `self_cmd`) and web-only modules (`wasm_app`) are gated by
6//! `cfg(target_arch = "wasm32")`.
7//!
8//! `platform/` is the cross-target abstraction: `Persistence` and
9//! `InstanceLock` are re-exported with the same struct/method shape on
10//! both sides, so caller code outside `platform::` is portable.
11
12pub mod build_info;
13pub mod format;
14pub mod game;
15pub mod i18n;
16pub mod input;
17pub mod platform;
18pub mod save;
19pub mod sim;
20pub mod ui;
21
22#[cfg(not(target_arch = "wasm32"))]
23pub mod app;
24#[cfg(not(target_arch = "wasm32"))]
25pub mod self_cmd;
26
27#[cfg(target_arch = "wasm32")]
28mod wasm_app;