Crate of the Week

I'm suggesting my crate prae. It provides a convenient macro that generates a type with automatic validation, which you otherwise would do using the newtype pattern and implementing getters and setters yourself. It also allows you to create types that inherit validation of other types. It provides an integration with serde, which enables validation during deserialization, making it especially useful for web-related work, for example.

1 Like