Vrustify

nameVrustify
created_at2023-12-30 13:04:59.273318
updated_at2023-12-30 13:04:59.273318
downloads13
descriptionVrustify 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.
homepagehttps://mano7onam.github.io/vrustify/
repositoryhttps://github.com/mano7onam/vrustify.git/
max_upload_size
id1084199
Andrey

documentation

https://mano7onam.github.io/vrustify/docs/

readme

# 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`: ```toml [dependencies] Vrustify = "0.1.0" ``` And then do a cargo build: ```bash cargo build ``` ## Usage First, include the `Vrustify` in your Rust file: ```rust extern crate Vrustify; ``` Then you can use the validation functions in your code as follows: For email validation: ```rust if Vrustify::email::validate("example@example.com") { println!("Valid email!"); } else { println!("Invalid email."); } ``` For URL validation: ```rust if Vrustify::url::validate("https://example.com") { println!("Valid URL!"); } else { println!("Invalid URL."); } ``` And alike for other types of validation. ## License `Vrustify` is distributed under the MIT license. See `LICENSE` file for additional information.
Commit count: 4

cargo fmt