email-validator 0.1.0

An email syntax validator
Documentation
  • Coverage
  • 50%
    1 out of 2 items documented0 out of 1 items with examples
  • Size
  • Source code size: 24.48 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.29 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 24s Average build duration of successful builds.
  • all releases: 24s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Shadowcat650/email-validator
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • Shadowcat650

Email Validator

An open-source library that provides a simple way to validate the structure of an email based on RFC 3696. This project does not ensure the email is actually valid—just that it could be valid. This is useful for instances where you want to validate user email input to ensure it correct.

Usage

use email_validator::validate_email;

fn main() {
    let is_valid = validate_email("test@example.co");
    assert_eq!(is_valid, true);
    
    let is_valid = validate_email("test@example");
    assert_eq!(is_valid, false);
}

Contributing

Note that this tool is not perfect and can allow invalid emails or may deny valid ones (very rarely). To see the types of emails this tool allows, view the tests module. If you notice any errors, please create a pull request or issue on GitHub.

If you would like to request a feature, please file an issue on GitHub before creating a pull request to ensure it will be accepted.