lib-epub
A Rust library for reading and manipulating EPUB eBook files.
This library provides complete EPUB file parsing functionality, supporting EPUB 2 and EPUB 3 formats. It can extract metadata, access content files, and handle encrypted resources. Furthermore, this library also provides a convenient way to build epub files from a set of resources.
Features
- Parse EPUB file structure and containers, extract metadata, access resource files.
- Automatic handle encrypted content.
- Optional EPUB build functionality via 'builder' feature.
- EPUB specification-compliant verification mechanism.
Installation
Add this to your Cargo.toml:
[]
= "0.0.5"
Quick Start
Reading an EPUB file and extracting metadata:
use ;
Building an EPUB file:
use ;
Enable features
Enable the builder feature in Cargo.toml:
[]
= { = "0.0.5", = ["builder"] }
MSRV
The minimum supported Rust version is 1.85.0.
More information
- Documentation: https://docs.rs/lib-epub
- Crate: https://crates.io/crates/lib-epub
License
This project is licensed under the MIT License.