Subject: [bug#75677] [PATCH rust-team 44/89] gnu: rust-email-address-0.2: New variable.

From: Aaron Covrig <[email-masked]>
Date: Sun, 19 Jan 2025 17:49:18 -0500

* gnu/packages/crates-io.scm (rust-email-address-0.2): New variable.
---
 gnu/packages/crates-io.scm | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 6ed374c6bf..22d024d981 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -22656,6 +22656,32 @@ (define-public rust-email-0.0.20
      "This crate provides an implementation of RFC 5322 email messages.")
     (license license:expat)))
 
+(define-public rust-email-address-0.2
+  (package
+    (name "rust-email-address")
+    (version "0.2.9")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "email_address" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0jf4v3npa524c7npy7w3jl0a6gng26f51a4bgzs3jqna12dz2yg0"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-serde" ,rust-serde-1))
+       #:cargo-development-inputs (("rust-claims" ,rust-claims-0.7)
+                                   ("rust-serde-assert" ,rust-serde-assert-0.8))))
+    (home-page "https://github.com/johnstonskj/rust-email_address")
+    (synopsis
+     "RFC-compliant `EmailAddress` newtype implementation")
+    (description
+     "Primarily for validation, the EmailAddress type is constructed with
+FromStr::from_str which will raise any parsing errors.  Prior to constructions
+the functions is_valid, is_valid_local_part, and is_valid_domain may also be
+used to test for validity without constructing an instance.")
+    (license license:expat)))
+
 (define-public rust-embedded-io-0.6
   (package
     (name "rust-embedded-io")
-- 
2.47.1