Weavon: A 9.3 MB Rust Rewrite of Pandoc with 99.93% Compatibility, 15-50x Faster

Weavon, a Rust rewrite of Pandoc: 9.3 MB single binary, 99.93% compatible, 15-50x faster
Weavon is a drop-in replacement for Pandoc 3.13, written in safe Rust, challenging Pandoc's 195 MB size with a 9.3 MB macOS ARM64 single binary and no runtime dependencies other than libSystem. It matches 99.93% of 65,937 Pandoc baseline tests, with 46 remaining differences being intentional, showing careful alignment with edge-case format semantics rather than a simplified version. On performance, it is 15.3-49.7x faster on a 1 MB benchmark with 5.6-19.2x lower peak memory, thanks to reduced Haskell runtime overhead and Rust architectural choices. v0.2.0 bundles a pure-Rust PDF engine requiring no TeX Live, with PDF/A and PDF/UA tag support, plus lossless DOCX/PPTX round-trip, WASM sandboxed filters, LSP and MCP servers, and Python/Node bindings.
Pandoc has long been the "Swiss Army knife" of document conversion, but its size and dependency issues have given plenty of developers headaches. Weavon, which recently appeared on Hacker News, attempts to rewrite this toolchain in Rust and delivers a fairly aggressive answer: a 9.3 MB single binary, 99.93% compatibility, 15 to 50x speedup, and PDF generation without installing TeX Live.

Size and Compatibility: A 9.3 MB Single File
The author positions Weavon as a drop-in replacement for Pandoc 3.13, written in safe Rust. The comparison is direct: the official Pandoc binary is 195 MB, while Weavon is a 9.3 MB stripped binary on macOS ARM64 with no runtime dependencies other than libSystem.
On compatibility, Weavon claims support for all 52 input formats and 77 output formats of Pandoc 3.13, with Lua 5.4.8, LPeg, citeproc, and 194 syntax-highlighting languages built in. Among 65,937 Pandoc 3.13 baseline tests, it matched 65,891 units—99.93%—with the remaining 46 differences being intentional design choices by the author.
The significance of these numbers: the migration cost of a document conversion tool lies mainly not in the API but in behavioral consistency for "edge-case formats." A 99.93% test match rate shows Weavon is not a simplified version that "handles the common formats well enough" but rather one that has carefully aligned with Pandoc's semantic boundaries.
A drop-in replacement refers to a program that can directly replace the original tool without modifying existing invocation methods, configurations, or scripts. For a command-line tool like Pandoc, drop-in compatibility means identical arguments (such as -f/-t for specifying formats), identical stdin/stdout behavior, and identical exit-code semantics. This is the most practical compatibility level when migrating a document conversion tool: users don't need to rewrite build scripts or CI configurations, only to change the executable path. By declaring drop-in compatibility against Pandoc 3.13, Weavon is effectively promising CLI-level behavioral alignment, not library API compatibility.
A stripped binary refers to an executable from which debug symbols and some metadata have been removed after compilation. Debug symbols are used during development to locate crashes and for performance profiling, but they significantly increase file size and have no runtime value for end users. Rust projects typically slim binaries by setting strip = true in Cargo's release profile or by running the strip command after building. The gap between 9.3 MB and 195 MB comes not only from stripping but, more importantly, from the static linking of the Haskell runtime and Pandoc's numerous dependency libraries.
Performance: Where Does the 15-50x Speed Difference Come From
In a 1 MB benchmark on Apple Silicon, Weavon is 15.3 to 49.7x faster than Pandoc 3.13, with peak memory 5.6 to 19.2x lower.
The sources of the speed gap can roughly be divided into two layers. One layer is language and runtime: Pandoc is based on the Haskell ecosystem, where startup and GC overhead take a noticeable share of short tasks; Rust's zero-cost abstractions and more compact memory layout amplify their advantage in batch conversions. The other layer is architectural choice: Weavon packs the PDF engine, filter runtime, and more into a single binary, reducing cross-process and external dependency scheduling costs.
It should be noted that this is the author's own benchmark environment, and results on 1 MB documents cannot be directly extrapolated to very large files or extreme format combinations. But the order-of-magnitude difference is enough to show that for teams frequently invoking conversion tools in CI pipelines, this overhead difference is very real.
Haskell's runtime and GC characteristics are key background for understanding this performance gap. Haskell programs typically statically link the GHC runtime system (RTS), which includes a generational garbage collector. For short-lived command-line processes, RTS initialization and GC thread startup carry fixed overhead that is substantial when converting small documents. In addition, while Haskell's lazy evaluation is expressive, it generates thunk allocations and extra memory residency, so peak memory often exceeds that of strictly evaluated languages. Rust has no runtime or GC, and its memory layout is more predictable, which amplifies its advantage in batch, short-task CI scenarios. It should be distinguished that these overhead differences mainly affect startup and constant factors and do not mean Haskell is equally behind in long-running computational tasks.
PDF Without TeX Live: A Self-Built Engine with Accessibility Tags
The traditional path for Pandoc to generate PDFs relies on LaTeX, and in practice this often requires installing several GB of TeX Live. Weavon v0.2.0 introduces a pure-Rust embedded PDF engine that supports Unicode font subsetting, TeX math formulas, SVG rendering, and outputs PDF/A and PDF/UA tags.
PDF/A is for long-term archiving while PDF/UA is for accessible reading; both tags previously required additional toolchains to fill in. Building them into the converter means the document pipeline can drop an entire post-processing stage.
TeX Live is the complete distribution of the LaTeX ecosystem, including TeX engines, macro packages, fonts, and auxiliary tools, with an installation size typically in the several GB range. Pandoc's default path to PDF is to first convert the document to LaTeX, then call an engine such as pdflatex/xelatex to compile it, so an external TeX installation is mandatory. The pain points of this path: bloated CI images, unstable builds caused by macro package version drift, and compiler error messages that are unfriendly to non-TeX users. Weavon bypasses LaTeX and directly typesets and outputs PDF using a pure Rust engine, eliminating this entire external dependency chain—but it also means it must implement on its own work that TeX originally handled, such as line breaking, font subsetting, and math typesetting.
PDF/A and PDF/UA are two ISO standard subsets of PDF. PDF/A is for long-term archiving and requires all fonts to be embedded, color spaces to be self-contained, and external references to be prohibited, ensuring documents still render correctly decades later. PDF/UA is for Universal Accessibility and requires documents to have a correct tag structure (tagged PDF), logical reading order, and alternative text so that screen readers can parse the content. Both require building a structured tag tree at generation time rather than converting afterward, so building support into the converter is more reliable than relying on external post-processing tools.
Other Capabilities of v0.2.0: From Converter to Document Toolchain
Beyond core conversion, v0.2.0 adds several noteworthy capabilities:
- Lossless round-trip conversion for DOCX and PPTX, which is critical for scenarios requiring programmatic editing of Office documents;
- Sandboxed WebAssembly filters that replace Pandoc's external filter model with better security;
- Built-in LSP and MCP servers that can be called directly by editors and AI clients;
- Live preview, plus a git diff driver for Office and PDF files;
- Python and Node bindings.
The addition of LSP and MCP signals something: document conversion is shifting from "command-line batch processing" to "a service callable by editors and AI agents." If the converter itself can expose capabilities as an MCP server, AI toolchains handling documents no longer need to assemble parsing logic themselves.
Try It and Judging It
Weavon offers an in-browser playground (weavon.org/playground) and the CLI can be installed via curl -fsSL https://weavon.org/install.sh | sh. The discussion heat on Hacker News (334 points, 147 comments) shows that the community has a real need for a "lighter Pandoc."
From an engineering perspective, what's most noteworthy about this project is not the benchmark scores but that it packs several long-fragmented pieces of the Pandoc ecosystem—format conversion, PDF generation, filter sandboxing, editor integration—into a single binary. Whether it's worth migrating depends on how sensitive your pipeline is to TeX Live dependencies and cold-start latency; for CI-intensive scenarios or those needing to embed into AI toolchains, Weavon's trade-off direction is right.
Related articles

Should AI Companies Stop Developing In-House? Former OpenAI Researcher Debates Lex
Former OpenAI researcher Daniel Kokotajlo debates Lex Fridman: AI CEOs call for slowing down but don't stop—should employees quit? Why automated AI research precedes white-collar job loss, and what research taste is.

SSH and PGP Key Upgrades: A Practical Guide to P-256, ED25519, and Curve25519
Developer Seth Larson explains how to discover and upgrade SSH and PGP keys, covering practical steps, pitfalls, and debates around P-256, ED25519, and Curve25519.

Quantum Computers Bigger Than the Universe? Uncovering the Truth Behind 'Academic Breaks'
Computerphile video explores the quantum computing power needed to break ciphers: 2^1000 quantum operations, far exceeding the total atoms in the universe. The article explains the concept of an 'academic break,' noting that while the threat exists in theory, it is practically infeasible, and looks at the possibility of future attack improvements.