API Reference
Honzo exposes APIs for four surfaces. Each is a thin layer over the same core format.
Available APIs
Rust
Full featured parser, builder, streaming, compression, and DRM support.
Rust API
C++
RAII wrapper over the C binding. Embedded-friendly, header-only, no STL required.
C++ API
WASM / TypeScript
Browser and Node.js support via WebAssembly.
WASM API
C
FFI friendly single header binding for read only access.
C APISurface comparison
| Feature | Rust | C++ | WASM/TS | C |
|---|---|---|---|---|
| Parse & inspect | Yes | Yes | Yes | Yes |
| Builder | Yes | Yes | Yes | No |
| Streaming reader | Yes | Yes | No | Yes |
| Compression | Yes | Yes | Yes | No |
| DRM | Yes | Yes | Yes | No |
| EPUB conversion | Yes | No | Yes | No |
| no_std support | honzo-core |
N/A | N/A | N/A |
Underlying crates
All APIs are built on the same Rust workspace:
| Crate | Description | Depends On |
|---|---|---|
honzo-core |
no_std wire-format types + parser | None |
honzo-chunks |
Chunk semantics (SIDX, COVT, extras) | honzo-core |
honzo-io |
Builder, reader, stream, compression | honzo-core, honzo-chunks |
honzo-c |
C FFI via Diplomat | honzo-core, honzo-chunks, honzo-io |
honzo-wasm |
WASM target | honzo-core, honzo-chunks, honzo-io, honzo-convert |
honzo-cli |
Command-line binary | honzo-io, honzo-convert |
honzo-convert |
EPUB/MOBI/PDF import | honzo-io |