1pub mod telemetry;
7pub mod strategy;
8pub mod race;
9pub mod regulations;
10pub mod track;
11pub mod weather;
12pub mod tire;
13pub mod fuel;
14pub mod types;
15
16#[cfg(not(target_arch = "wasm32"))]
17pub mod api;
18
19pub use telemetry::*;
20pub use strategy::*;
21pub use race::*;
22pub use regulations::*;
23pub use track::*;
24pub use weather::*;
25pub use tire::*;
26pub use fuel::*;
27pub use types::*;
28
29#[cfg(not(target_arch = "wasm32"))]
30pub use api::*;
31
32pub const VERSION: &str = env!("CARGO_PKG_VERSION");
34
35pub const MAX_RACE_LAPS: u16 = 78; pub const GRID_SIZE: u8 = 20;
40
41pub const MANDATORY_PIT_STOPS: u8 = 1;
43
44pub const TELEMETRY_HZ: u32 = 1000;
46
47#[cfg(test)]
48mod tests {
49 use super::*;
50
51 #[test]
52 fn test_version() {
53 assert!(!VERSION.is_empty());
54 }
55}