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
//! The contents of this crate need to be organized better:
//!
//! - Timer (a mix of logging, profiling, and even parallel execution)
//! - IO utilities, some of which have web equivalents using include_dir
//! - Utilities to find A/B Street-specific data
//! - true utility functions (collections, prettyprinting, CLI parsing

#[macro_use]
extern crate log;

#[cfg(not(target_arch = "wasm32"))]
mod io_native;
#[cfg(not(target_arch = "wasm32"))]
pub use io_native::*;
#[cfg(target_arch = "wasm32")]
mod io_web;
#[cfg(target_arch = "wasm32")]
pub use io_web::*;

// I'm not generally a fan of wildcard exports, but they're more maintable here.
pub use crate::serde::*;
pub use abst_data::*;
pub use abst_paths::*;
pub use cli::*;
pub use collections::*;
pub use process::*;
pub use time::*;
pub use utils::*;

mod abst_data;
mod abst_paths;
mod cli;
mod collections;
mod io;
mod process;
mod serde;
mod time;
mod utils;

const PROGRESS_FREQUENCY_SECONDS: f64 = 0.2;