Crates.io | valibuk |
lib.rs | valibuk |
version | 0.2.0 |
source | src |
created_at | 2023-03-01 22:16:34.800526 |
updated_at | 2023-04-11 21:10:39.957084 |
description | Valibuk is a library and a set of macros implementing the correct-by-construction pattern. |
homepage | https://github.com/mirosval/valibuk |
repository | https://github.com/mirosval/valibuk |
max_upload_size | |
id | 798367 |
size | 21,301 |
Valibuk is a library and a set of macros implementing the correct-by-construction pattern.
Correct-by-construction is a pattern that leverages the type system to guard against bugs that can come from improperly validating inputs. It does so by having an "unvalidated" type and a "validated" type. The only way of obtaining an instance of the validated type is to run all the defined validations on the unvalidated type. Then the correctness is achieved by using the correct type.
See more examples in tests
and examples
.