#user-input #input-validation

validate

A library to easily validate user input

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

Download history 120/week @ 2024-03-27 35/week @ 2024-04-03 66/week @ 2024-04-10 74/week @ 2024-04-17 58/week @ 2024-04-24 36/week @ 2024-05-01 49/week @ 2024-05-08 47/week @ 2024-05-15 79/week @ 2024-05-22 92/week @ 2024-05-29 47/week @ 2024-06-05 125/week @ 2024-06-12 162/week @ 2024-06-19 156/week @ 2024-06-26 198/week @ 2024-07-03 132/week @ 2024-07-10

695 downloads per month
Used in 3 crates

MIT/Apache

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