Skip to content

Installation

Add ebook-rs to your Cargo.toml:

[dependencies]
ebook-rs = "0.16.4"

Or via cargo add:

Terminal window
cargo add ebook-rs
Feature Description Default
server Built-in HTTP web reader server (tiny_http) โœ… Yes
mcp Native Model Context Protocol (MCP) JSON-RPC server โœ… Yes
parallel Multi-threaded rayon parsing & search โœ… Yes
mmap Memory-mapped I/O reader for giant files โœ… Yes
zstd High-compression state caching (zstd) โœ… Yes
opds OPDS 1.2 / 2.0 catalog feeds โœ… Yes
python PyO3 Python bindings โŒ No
wasm WebAssembly (wasm-bindgen) bindings โŒ No
pdf Native PDF spatial reflow engine (pdf_oxide) โŒ No

Install the standalone binary directly on your system:

Terminal window
cargo install ebook-rs

Verify installation:

Terminal window
ebook-rs --help

Install pre-compiled binary wheels for Linux, macOS, and Windows:

Terminal window
pip install ebook-rs

Terminal window
npm install @sv-stark/ebook-rs
```\n