[bug#75677,rust-team,v2,40/81] gnu: rust-email-address-0.2: New variable.

Message ID 20250308033446.2101481-41-aaron.covrig.us@ieee.org
State New
Headers
Series Assorted package updates for rust-team |

Commit Message

Aaron Covrig March 8, 2025, 3:33 a.m. UTC
  * gnu/packages/crates-io.scm (rust-email-address-0.2): New variable.
---
 gnu/packages/crates-io.scm | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)
  

Patch

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 29da6424da..77f34226e0 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -23102,6 +23102,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")