News for hackers. Stuff that matters.
Re: by greyblake on Friday December 20, 2024 @07:09AM (#42470419)
Nutype is a proc macro that allows adding extra constraints like sanitization and validation to the regular newtype pattern. The generated code makes it impossible to instantiate a value without passing the checks. It works this way even with serde deserialization.

There are no comments on this comment yet.