Mundane: Rust cryptography library backed by BoringSSL
The repo includes a DESIGN.md file that describes the design motivations for the library, and it&#x27;s definitely worth reading. It goes through a few really powerful techniques for writing misuse-resistant APIs, and I think some of its advice is applicable to good software engineering in general.<p><a href="https:&#x2F;&#x2F;github.com&#x2F;google&#x2F;mundane&#x2F;blob&#x2F;master&#x2F;DESIGN.md" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;google&#x2F;mundane&#x2F;blob&#x2F;master&#x2F;DESIGN.md</a><p>In particular, their use of the type system to expose opaque types that only allow meaningful operations on them is something that I&#x27;ve seen used to great effect in other statically typed languages, like Haskell.