Vrustify
Vrustify is a small but powerful library for data validation in Rust.
It provides validation functions for:
- Email addresses
- URLs
- Phone numbers
- Passwords
Installation
You can include Vrustify library to your project, by adding following to your Cargo.toml:
[]
= "0.1.0"
And then do a cargo build:
Usage
First, include the Vrustify in your Rust file:
extern crate Vrustify;
Then you can use the validation functions in your code as follows:
For email validation:
if validate else
For URL validation:
if validate else
And alike for other types of validation.
License
Vrustify is distributed under the MIT license. See LICENSE file for additional information.