Installation
๐ฆ Rust Crate
Section titled โ๐ฆ Rust CrateโAdd ebook-rs to your Cargo.toml:
[dependencies]ebook-rs = "0.16.4"Or via cargo add:
cargo add ebook-rsAvailable Cargo Features
Section titled โAvailable Cargo Featuresโ| 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 |
๐ป CLI Executable
Section titled โ๐ป CLI ExecutableโInstall the standalone binary directly on your system:
cargo install ebook-rsVerify installation:
ebook-rs --help๐ Python Package
Section titled โ๐ Python PackageโInstall pre-compiled binary wheels for Linux, macOS, and Windows:
pip install ebook-rs๐ฆ WebAssembly / NPM
Section titled โ๐ฆ WebAssembly / NPMโnpm install @sv-stark/ebook-rs```\n