#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

#28 in #input-validation

Download history 180/week @ 2024-07-22 360/week @ 2024-07-29 162/week @ 2024-08-05 222/week @ 2024-08-12 301/week @ 2024-08-19 280/week @ 2024-08-26 193/week @ 2024-09-02 176/week @ 2024-09-09 59/week @ 2024-09-16 100/week @ 2024-09-23 99/week @ 2024-09-30 98/week @ 2024-10-07 43/week @ 2024-10-14 39/week @ 2024-10-21 33/week @ 2024-10-28 32/week @ 2024-11-04

151 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
~76K SLoC