Co-authored-by: Santiago Carmuega <santiago@carmuega.me>
A Rust port of the Haskell reference implementation.