How Reading a Design Patterns Book Led Me to Audit My Rust Framework with UML and Merise A developer audited their Rust web framework Runique by modeling it in UML and Merise, finding over 20 latent bugs including three security-relevant ones that had not been caught by tests or the compiler. The method translates Rust type constructs into diagram notations and audits discrepancies between the two representations. I was reading a design patterns book. I got to the UML class diagrams — and I stopped. Because the diagram on the page was describing something Rust already says in its own syntax. A struct is a class. Option