addr-spec-0.4.3 has been yanked.
addr-spec
A wicked, fast UTF-8 email address parser and serializer. It provides
- unopinionated, correct parsing of email addresses (defined as
addr-specin RFC 5322), - extremely fast serialization and deserialization using low-level memory management,
- UTF-8 support with NFC normalization as recommended in RFC 6532,
- format validation based on the grammar set out in Section 3.4.1, RFC 5322 and Section 3.2, RFC 6532,
- and extremely fast serialization and deserialization. (Did we mention it's really fast?)
Features
This crate supports the following features:
comments- This allows parsing (but not serialization; see Caveats) of comments.literals- This allows parsing and serialization of literal domains.white-spaces- This allows parsing (but not serialization; see Caveats) of whitepaces.
Caveats
Folding white spaces
Serializing folding white spaces (abbr. FWS) is not supported since it is
dependent on the transport mechanism. If you need to break the address along
foldable boundaries, you can use into_serialized_parts which returns
serialized versions of the local part and domain.
Comments
Serializing comments is not supported since it is dependent on the transport mechanism. At the moment, comments are parsed, but skipped as there is no uniform way of handling them. If you would like comments to be stored, please file an issue with your use-case.