How jlucfarias/toth works
Toth is a Rust CLI for preparing book exports from a Markdown-book project. The observed workflow reads book.toml, parses book metadata, selects EPUB, derives an output filename and prints the planned destination. The sampled code does not read Markdown chapters or write an EPUB, so those generation stages are not represented as implemented components. The README also describes book-structure and presentation customization, but the sampled core model exposes only a title; its implementation is therefore uncertain.
Main entry points: main.rs CLI command · format.rs Export format · book.rs Book metadata
Components 6
CLI workflow
- CLI command
crates/cli/src/main.rs
Book domain
- Book metadata
crates/core/src/book.rs - Export format
crates/core/src/format.rs - Book customization
crates/core/src
Other components
- CLI user
- book.toml
Connections 5
- CLI user → CLI command: invokes
crates/cli/src/main.rs - CLI command → book.toml: reads
crates/cli/src/main.rs - CLI command → Book metadata: parses metadata
crates/cli/src/main.rs - CLI command → Export format: selects format
crates/cli/src/main.rs - CLI command → Export format: gets extension
crates/cli/src/main.rs