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.
teenjuna
1033
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| List of crates that improves or experiments with Rust, but may be hard to find | 28 | 14133 | December 31, 2019 | |
| [TWiR] Call for Participation | 632 | 101561 | November 26, 2025 | |
|
Beginner Projects that can make me comfortable with rust
|
42 | 3737 | March 17, 2021 | |
| Lib.rs (was Crates.rs) — a new, faster crate index website | 59 | 14568 | January 21, 2019 | |
| TWiR Friends of the forest | 24 | 10433 | July 13, 2017 |