Skip to main content

wowlab_types/
lib.rs

1// #t(file: rust_unbalanced_crate_root) the canonical API is intentionally module-only so every domain item has one public path
2
3//! Canonical data contracts shared by `WoW` Lab's Rust crates and browser boundary.
4//!
5//! ```
6//! use wowlab_types::sim::{SimTime, SpellIdx};
7//!
8//! let spell = SpellIdx::from_raw(17);
9//! let timestamp = SimTime::from_millis(1_500);
10//!
11//! assert_eq!(spell.as_u32(), 17);
12//! assert_eq!(timestamp.as_millis(), 1_500);
13//! ```
14
15pub mod bench_metrics;
16pub mod colors;
17#[path = "types/combat/mod.rs"]
18pub mod combat;
19pub mod constants;
20pub mod copy;
21#[path = "types/data/mod.rs"]
22pub mod data;
23#[path = "types/game/mod.rs"]
24pub mod game;
25pub mod numeric;
26pub mod proto;
27#[path = "types/sensitive.rs"]
28pub mod sensitive;
29#[path = "types/sim/mod.rs"]
30pub mod sim;
31#[path = "types/spell_desc.rs"]
32pub mod spell_desc;
33#[path = "types/spell_render.rs"]
34pub mod spell_render;
35pub mod stats;
36pub mod table_registry;
37
38#[cfg(feature = "wasm")]
39pub mod wasm;