ebook-rs 0.2.0

Pure Rust EPUB parser and reader engine with CFI location mapping, full-text search, font de-obfuscation, and WASM/HTTP reader support.
Documentation
#![allow(clippy::collapsible_if, clippy::collapsible_match)]

pub mod annotations;
pub mod archive;
pub mod book;
pub mod cfi;
pub mod deobfuscate;
pub mod fb2;
pub mod layout;
pub mod lit;
pub mod locations;
pub mod metadata;
pub mod mobi;
pub mod nav;
pub mod opf;
pub mod sample_builder;
pub mod search;
pub mod section;
pub mod wasm;

#[cfg(feature = "server")]
pub mod server;
#[cfg(feature = "server")]
pub mod web_ui;

pub use annotations::{Annotation, AnnotationManager, AnnotationType};
pub use archive::EpubArchive;
pub use book::Book;
pub use cfi::{Cfi, CfiOffset, CfiPath, CfiStep};
pub use deobfuscate::FontDeobfuscator;
pub use fb2::Fb2Book;
pub use layout::{FlowMode, LayoutMode, RenditionLayout, SpreadMode, Theme};
pub use lit::LitBook;
pub use locations::{LocationEntry, Locations};
pub use metadata::{GuideItem, ManifestItem, Metadata, PageProgressionDirection, SpineItem};
pub use mobi::{MobiBook, decompress_palmdoc};
pub use nav::{Landmark, NavPoint, PageListItem};
pub use sample_builder::generate_sample_epub;
pub use search::{SearchEngine, SearchResult};
pub use section::Section;

#[cfg(feature = "server")]
pub use server::ReaderServer;

#[cfg(feature = "wasm")]
pub use wasm::WasmBook;