1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
use std::collections::HashMap;
use std::sync::Mutex;
#[macro_use]
extern crate lazy_static;
pub mod config;
pub mod cop;
pub mod source;
pub mod target_finder;
pub mod testing;
pub mod types;
lazy_static! {
static ref NODE_HANDLERS: types::NodeHandlersMap = Mutex::new(HashMap::new());
static ref TOKENS_HANLDERS: Mutex<Vec<(&'static str, types::TokensHandler)>> =
Mutex::new(vec![]);
pub static ref COPS: Mutex<Vec<&'static str>> = Mutex::new(vec![]);
pub static ref CONFIG: config::Config = config::load();
}