Nutype 0.6.2 released

72 points greyblake 11 comments

Nutype is a proc macro that adds sanitization_ and validation to newtypes, ensuring values always pass checks.

This release comes with `derive_unsafe(..)` attribute, which allows to derive third party traits that nutype is not aware of.

An example:

use nutype::nutype;

#[nutype(derive_unsafe(utoipa::ToSchema))]
struct Username(String);