Crates.io | r-epub |
lib.rs | r-epub |
version | 0.2.2 |
source | src |
created_at | 2024-05-13 12:21:19.714381 |
updated_at | 2024-05-16 11:40:40.345356 |
description | Library to support parse .epub file |
homepage | |
repository | https://github.com/Tallone/r-epub |
max_upload_size | |
id | 1238353 |
size | 22,464 |
let path = "demo.epub";
let extract_path = Some("demo");
let epub = EpubContainer::parse(path, extract_path).unwrap();
// Get cover
let cover = epub.cover();
// Get title
let title = epub.title();
// Get toc
let toc = epub.toc();
// Get chapter
let ch = epub.get_chapter(2).unwrap();
println!("ch: {:?}", ch);