Our great sponsors
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
Hi! Recently I stumbled upon a post here called Tightness Driven Development. It was an interesting read with very good ideas. The author created a small library called tightness to help users create types that promise to be always valid. Although the library was good, I found it a bit inconvenient and described my concerns in this issue. I didn't get much response, so I decided to write my own (and very first) crate for this!
Meet prae. It provides a simple proc macro that allows you to do small things like this:
Thanks for the kind words. This is true that proc macro code can be very messy. At first I got some very ugly nested spaghetti code, it took me a couple of iterations to make it a bit more clear. By the way, there is a proposal in syn repo that can make the developer experience even better!