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
26use mimalloc::MiMalloc;
27#[global_allocator]
28static GLOBAL: MiMalloc = MiMalloc;
29
30// use snmalloc_rs::SnMalloc;
31// #[global_allocator]
32// static GLOBAL: SnMalloc = SnMalloc;
33
34use anyhow::Result;
35use clap::Parser;
36
37use cli::CLI;
38
39fn main() -> Result<()> {
40    let opt = CLI::parse();
41    opt.exec()
42}