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 sim;
19pub mod ui;
20
21#[cfg(not(target_arch = "wasm32"))]
22pub mod app;
23#[cfg(not(target_arch = "wasm32"))]
24pub mod self_cmd;
25
26#[cfg(target_arch = "wasm32")]
27mod wasm_app;