1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
#![warn(
missing_docs,
clippy::correctness,
clippy::perf,
clippy::style,
clippy::complexity,
rust_2018_idioms
)]
#![recursion_limit = "128"]
#![allow(
clippy::block_in_if_condition_stmt,
clippy::redundant_closure_call,
clippy::new_ret_no_self
)]
#[macro_use]
extern crate derive_more;
#[macro_use]
extern crate quick_error;
#[macro_use]
extern crate serde_derive;
mod platform;
#[cfg(all(target_arch = "wasm32", not(target_os = "emscripten")))]
pub use crate::platform::*;
macro_rules! catch {
($($code:tt)*) => {
(|| { Some({ $($code)* }) })()
}
}
pub mod analysis;
pub mod comparison;
pub mod component;
mod hotkey_config;
mod hotkey_system;
mod image;
#[cfg(feature = "image-shrinking")]
mod image_shrinking;
pub mod layout;
#[cfg(feature = "rendering")]
pub mod rendering;
pub mod run;
pub mod settings;
#[cfg(test)]
pub mod tests_helper;
pub mod timing;
mod xml_util;
pub use {
crate::{
hotkey_config::HotkeyConfig,
hotkey_system::HotkeySystem,
image::{CachedImageId, Image},
layout::{
Component, Editor as LayoutEditor, GeneralSettings as GeneralLayoutSettings, Layout,
},
run::{Attempt, Editor as RunEditor, Run, RunMetadata, Segment, SegmentHistory},
timing::{
AtomicDateTime, GameTime, RealTime, SharedTimer, Time, TimeSpan, TimeStamp, Timer,
TimerPhase, TimingMethod,
},
},
chrono::{DateTime, Utc},
indexmap, livesplit_hotkey as hotkey, palette, parking_lot,
};