Check email address

4 releases

Uses old Rust 2015

0.9.6 Feb 15, 2019
0.9.5 Apr 5, 2017
0.9.4 Jan 31, 2017
0.9.3 Dec 7, 2016

#49 in Email

Download history 24203/week @ 2023-08-08 25612/week @ 2023-08-15 29074/week @ 2023-08-22 41576/week @ 2023-08-29 51434/week @ 2023-09-05 44955/week @ 2023-09-12 46707/week @ 2023-09-19 47713/week @ 2023-09-26 53364/week @ 2023-10-03 63825/week @ 2023-10-10 48673/week @ 2023-10-17 47926/week @ 2023-10-24 56138/week @ 2023-10-31 50728/week @ 2023-11-07 52723/week @ 2023-11-14 43295/week @ 2023-11-21

212,913 downloads per month
Used in 38 crates (5 directly)

MPL-2.0 license

202 lines

Fast Chemail

A Dart library to validate the email as it is defined in the HTML specification. The RFC 5322 is too lax (allowing comments, whitespace characters, and quoted strings in manners unfamiliar to most users) to be of practical use.

Also, has been considered the bounds defined in:

  • SMTP :: Size Limits and Minimums

    • The maximum total length of a user name or other local-part is 64 octets.
    • The maximum total length of a domain name or number is 255 octets.
    • The maximum total length of a reverse-path or forward-path is 256 octets (including the punctuation and element separators).

    There is a great contradiction. The maximum total length of an email address is 320 octects:

    {64}@{255} => 64 + 1 + 255 = 320

    but the maximum total length of a reverse-path or forward-path is 256 octets. Addition, that is only the length of the email address because it may contain a display name, like first last <local@domain> and will often extend 320 octets.

    Now well, since the standard says: "to the maximum extent possible, implementation techniques that impose no limits on the length of these objects should be used", the bound to reverse-path or forward-path will not be taken.

  • Application Techniques for Checking and Transformation of Names

    Such memo is not a standard else informational, so the correction done in the errata is not followed.

Table of Contents


Add to your 'Cargo.toml' file:

fast_chemail = "^0"

and to your crate root:

extern crate fast_chemail;


Read the documentation.


The canonical source of this repository is hosted on GitLab. Please make your issues there.

The pull requests are not accepted without filling an issue, to know wheter the changes seem to me right for the project.

Note: this is a free/open source project at zero price built in my spare time, and it is possible that I have not time to solve any issue.


© 2016 Jonas Me See the 'AUTHORS.md' file for a full list of authors.

The source files are distributed under the terms of the license Mozilla Public License, version 2.0