bookdata/main.rs
1//! Code for processing and integrating book data.
2//!
3//! The book data tools are developed as a monolithic executable. The commands
4//! themselves live under [cli], while the rest of the package contains data
5//! definitions and helper routines that build on this code. The tools are not
6//! currently usable as a library; you can extend them by adding additional commands
7//! to the [cli] module (`src/cli/` in the source tree).
8mod amazon;
9mod arrow;
10mod cleaning;
11mod cli;
12mod gender;
13mod goodreads;
14mod graph;
15mod ids;
16mod interactions;
17mod io;
18mod layout;
19mod marc;
20mod openlib;
21mod parsing;
22mod prelude;
23mod tsv;
24mod util;
25
26// use mimalloc::MiMalloc;
27
28// #[global_allocator]
29// static GLOBAL: MiMalloc = MiMalloc;
30
31use snmalloc_rs::SnMalloc;
32#[global_allocator]
33static GLOBAL: SnMalloc = SnMalloc;
34
35use anyhow::Result;
36use clap::Parser;
37
38use cli::CLI;
39
40fn main() -> Result<()> {
41 let opt = CLI::parse();
42 opt.exec()
43}