verust 0.2.4

Library verust is a versatile validation library, written in the Rust programming language, enabling the validation of data such as emails, URLS, phone numbers, and passwords. This efficient tool ensures the reliability of your input data and helps to maintain application quality at its highest.
Documentation
  • Coverage
  • 0%
    0 out of 16 items documented0 out of 11 items with examples
  • Size
  • Source code size: 15.14 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.96 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 23s Average build duration of successful builds.
  • all releases: 23s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • Documentation
  • mano7onam/verust
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • mano7onam

verust

Library for data validation in Rust.

It provides validation functions for:

  • Email addresses
  • URLs
  • Phone numbers
  • Passwords

Installation

You can include verust library to your project, by adding following to your Cargo.toml:

[dependencies]
verust = "0.1.0"

And then do a cargo build:

cargo build

Usage

First, include the verust in your Rust file:

extern crate verust;

Then you can use the validation functions in your code as follows:

For email validation:

if verust::email::validate("example@example.com") {
    println!("Valid email!");
} else {
    println!("Invalid email.");
}

For URL validation:

if verust::url::validate("https://example.com") {
    println!("Valid URL!");
} else {
    println!("Invalid URL.");
}

And alike for other types of validation.

License

verust is distributed under the MIT license. See LICENSE file for additional information.