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 arrow;
9mod cleaning;
10mod cli;
11mod gender;
12mod goodreads;
13mod ids;
14mod io;
15mod layout;
16mod marc;
17mod openlib;
18mod parsing;
19mod prelude;
20mod tsv;
21mod util;
22
23use mimalloc::MiMalloc;
24#[global_allocator]
25static GLOBAL: MiMalloc = MiMalloc;
26
27// use snmalloc_rs::SnMalloc;
28// #[global_allocator]
29// static GLOBAL: SnMalloc = SnMalloc;
30
31use anyhow::Result;
32use clap::Parser;
33
34use cli::CLI;
35
36fn main() -> Result<()> {
37    let opt = CLI::parse();
38    opt.exec()
39}