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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
//! # boko
//!
//! A high-performance, format-agnostic ebook processing engine.
//!
//! ## Architecture
//!
//! Boko uses an **Importer** architecture for reading ebooks:
//! - `Book` is the runtime handle that wraps format-specific backends
//! - `Importer` trait defines the interface for format backends
//! - Lazy loading via `ByteSource` for efficient random access
//!
//! ## Supported Formats
//!
//! | Format | Read | Write |
//! |----------|------|-------|
//! | KFX | ✓ | ✓ |
//! | AZW3 | ✓ | ✓ |
//! | EPUB | ✓ | ✓ |
//! | MOBI | ✓ | - |
//! | Markdown | - | ✓ |
//!
//! ## Quick Start
//!
//! ```no_run
//! use boko::Book;
//!
//! let mut book = Book::open("input.epub")?;
//! println!("Title: {}", book.metadata().title);
//!
//! // Iterate chapters (collect spine first to avoid borrow issues)
//! let spine: Vec<_> = book.spine().to_vec();
//! for entry in spine {
//! let content = book.load_raw(entry.id)?;
//! println!("Chapter: {} bytes", content.len());
//! }
//! # Ok::<(), boko::Error>(())
//! ```
pub
pub
pub
pub
/// KFX format internals (Ion codec, container layout, symbol tables).
///
/// Exposed for boko's own tooling (`boko kfx-dump`, fuzz targets, fixture
/// generators) — **not** part of the stable API; contents may change in any
/// release without a major-version bump.
pub
pub
// Error handling
pub use ;
// Primary exports from model
pub use ;
// Primary exports from style
pub use ;
// Primary exports from dom
pub use compile_html;
// Primary exports from other modules
pub use ;
pub use ;
pub use ;