11 releases (6 breaking)
Uses old Rust 2015
0.6.1 | Oct 16, 2017 |
---|---|
0.6.0 | Oct 12, 2017 |
0.5.0 | Oct 12, 2017 |
0.4.1 | Oct 12, 2017 |
0.0.1 | May 23, 2015 |
#17 in #input-validation
695 downloads per month
Used in 3 crates
9KB
253 lines
Validate
A library to easily validate user input
Usage
Add this to your Cargo.toml
:
[dependencies]
validate = "*"
and this to your crate root:
extern crate validate;
Example
use validate::*;
assert!(email().validate(&"test@domain.com").is_ok());
assert!(bound(..3).validate(&2).is_ok())
Dependencies
~3.5MB
~75K SLoC