wows_core/lib.rs
1//! Lightweight domain core for the WoWS toolkit.
2//!
3//! Holds shared types and small derived data with minimal dependencies, so lean
4//! consumers (e.g. a wasm viewer) can depend on just the types without pulling
5//! in the heavy unpacking/parsing stack that lives in `wowsunpack`.
6
7pub mod game_constants;
8pub mod game_types;
9pub mod recognized;
10pub mod units;
11pub mod version;
12
13pub use version::Version;
14
15/// Reference-counted pointer, unified across the workspace by the `arc` feature.
16/// With `arc` it is `Arc` (thread-safe); without it, `Rc`.
17#[cfg(feature = "arc")]
18pub type Rc<T> = std::sync::Arc<T>;
19
20#[cfg(not(feature = "arc"))]
21pub type Rc<T> = std::rc::Rc<T>;