Tech News
← Back to articles

Thoughts on the Word Spec in Rust

read original related products more articles

by Drew Miller on 2025-10-6

Tritium lives in the Word spec because to deliver great legal tech, we think we need to own the word processor.

The Word spec is giant.

It provides that a valid docx file may contain something like the below XML:

...

... ...

It thus supports essentially infinite nesting of paragraphs and tables in other words.

And since Word was written in C/C++ and happy to work with multiple mutable ownership, it's no problem to have these deeply nested structures.

But they're hard to do right in Rust.

So, where to start?

An excellent first place was the docx_rs crate maintained by bokuweb.

... continue reading