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
//! Code for processing and integrating book data.
//!
//! The book data tools are developed as a monolithic executable.  The commands
//! themselves live under [cli], while the rest of the package contains data
//! definitions and helper routines that build on this code.  The tools are not
//! currently usable as a library; you can extend them by adding additional commands
//! to the [cli] module (`src/cli/` in the source tree).
mod amazon;
mod arrow;
mod cleaning;
mod cli;
mod gender;
mod goodreads;
mod graph;
mod ids;
mod interactions;
mod io;
mod layout;
mod marc;
mod openlib;
mod parsing;
mod prelude;
mod tsv;
mod util;

// use mimalloc::MiMalloc;

// #[global_allocator]
// static GLOBAL: MiMalloc = MiMalloc;

use snmalloc_rs::SnMalloc;
#[global_allocator]
static GLOBAL: SnMalloc = SnMalloc;

use anyhow::Result;
use clap::Parser;

use cli::CLI;

fn main() -> Result<()> {
    let opt = CLI::parse();
    opt.exec()
}