A library to easily validate user input
Add this to your Cargo.toml
:
toml
[dependencies]
validate = "*"
and this to your crate root:
rust
extern crate validate;
```rust use validate::*;
assert!(email().validate(&"test@domain.com").isok()); assert!(bound(..3).validate(&2).isok())