Skip to main content

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 bignum;
13pub mod build_info;
14pub mod format;
15pub mod game;
16pub mod i18n;
17pub mod input;
18pub mod platform;
19pub mod save;
20pub mod sim;
21pub mod ui;
22
23#[cfg(not(target_arch = "wasm32"))]
24pub mod app;
25#[cfg(not(target_arch = "wasm32"))]
26pub mod self_cmd;
27
28#[cfg(target_arch = "wasm32")]
29mod wasm_app;