Subject: [PATCH v2 40/49] gnu: Add rust-unicode-width-0.2.

From: Jordan Moore <[email-masked]>
Date: Sat, 30 Nov 2024 11:55:15 -0500

* gnu/packages/crates-io.scm (rust-unicode-width-0.2): New variable.

Change-Id: Ic711bed11ef8650dd0d306db3694d140d8ec1dc5
---
 gnu/packages/crates-io.scm | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 61511c065c..ff4b34e0c7 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -91510,6 +91510,30 @@ (define-public rust-unicode-truncate-0.2
 in terms of displayed width.")
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-unicode-width-0.2
+  (package
+    (name "rust-unicode-width")
+    (version "0.2.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "unicode-width" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1zd0r5vs52ifxn25rs06gxrgz8cmh4xpra922k0xlmrchib1kj0z"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-compiler-builtins" ,rust-compiler-builtins-0.1)
+                       ("rust-rustc-std-workspace-core" ,rust-rustc-std-workspace-core-1)
+                       ("rust-rustc-std-workspace-std" ,rust-rustc-std-workspace-std-1))))
+    (home-page "https://github.com/unicode-rs/unicode-width")
+    (synopsis "Determine displayed width of `char` and `str` types
+according to Unicode Standard Annex #11 rules.")
+    (description
+     "This package provides Determine displayed width of `char` and `str` types according to Unicode
+Standard Annex #11 rules.")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-unicode-width-0.1
   (package
     (name "rust-unicode-width")
-- 
2.46.0