Subject: [bug#57040] [PATCH 4/9] gnu: Add rust-unicode-ident-1.

From: Nicolas Graves <[email-masked]>
Date: Sun, 07 Aug 2022 16:45:38 +0200

* gnu/packages/crates-io.scm (rust-unicode-ident-1): New variable.
---
 gnu/packages/crates-io.scm | 36 ++++++++++++++++++++++++++++++++++--
 1 file changed, 34 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 9442edcd4a..820ee38f50 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -68717,6 +68717,36 @@ (define-public rust-unicode-categories-0.1
 a member of a certain category of Unicode characters.")
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-unicode-ident-1
+  (package
+    (name "rust-unicode-ident")
+    (version "1.0.3")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "unicode-ident" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32
+         "1bqswc96ws8l6k7xx56dg521a3l5imi3mhlcz7rsi6a92mxb7xf4"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:tests? #f
+       #:cargo-development-inputs
+       (("rust-criterion" ,rust-criterion-0.3)
+        ("rust-fst" ,rust-fst-0.4)
+        ("rust-rand" ,rust-rand-0.8)
+        ("rust-roaring" ,rust-roaring-0.9)
+        ("rust-ucd-trie" ,rust-ucd-trie-0.1)
+        ("rust-unicode-xid" ,rust-unicode-xid-0.2))))
+    (home-page "https://github.com/dtolnay/unicode-ident")
+    (synopsis "Determine Unicode XID related properties")
+    (description "This package allows to determine whether characters have the
+XID_Start or XID_Continue properties according to Unicode Standard Annex
+#31. It is a better optimized implementation of the package
+@code{rust-unicode-xid}.")
+    (license (list license:asl2.0 license:expat license:unicode))))
+
 (define-public rust-unicode-linebreak-0.1
   (package
     (name "rust-unicode-linebreak")
@@ -68828,8 +68858,10 @@ (define-public rust-unicode-xid-0.2
     (build-system cargo-build-system)
     (home-page "https://github.com/unicode-rs/unicode-xid")
     (synopsis "Determine Unicode XID related properties")
-    (description "Determine whether characters have the XID_Start
-or XID_Continue properties according to Unicode Standard Annex #31.")
+(description "This package allows to determine whether characters have the
+XID_Start or XID_Continue properties according to Unicode Standard Annex
+#31. It is an older and less optimized implementation than the package
+@code{rust-unicode-ident}.")
     (license (list license:asl2.0 license:expat))))
 
 (define-public rust-unicode-xid-0.1
-- 
2.37.1

<#secure method=pgpmime mode=sign>

-- 
Best regards,
Nicolas Graves