sj4nes / validate

Rust input validation library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Validate

A library to easily validate user input. Forked in order to update the regex dependency.

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())

About

Rust input validation library


Languages

Language:Rust 100.0%