Subject: [PATCH 07/44] gnu: Add rust-unicode-ellipsis-0.2.

From: Divya Ranjan <[email-masked]>
Date: Sun, 5 Jan 2025 07:03:43 +0000

* gnu/packages/crates-io.scm (rust-unicode-ellipsis-0.2): New variable.
---
 gnu/packages/crates-io.scm | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 60037b2b7b..7bc02de2dc 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -87245,6 +87245,29 @@ (define-public rust-unicode-categories-0.1
 membership for characters in Rust.")
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-unicode-ellipsis-0.2
+  (package
+    (name "rust-unicode-ellipsis")
+    (version "0.2.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "unicode-ellipsis" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1zsdzmy6x1p8s35rgfmc7nx1qcs6j4bcfbfyiimrdngyqfwbajlj"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-unicode-segmentation" ,rust-unicode-segmentation-1)
+                       ("rust-unicode-width" ,rust-unicode-width-0.1))))
+    (home-page "https://github.com/ClementTsang/unicode-ellipsis")
+    (synopsis
+     "crate to truncate Unicode strings to a certain width, automatically adding an ellipsis if the string is too long.")
+    (description
+     "This package provides a crate to truncate Unicode strings to a certain width,
+automatically adding an ellipsis if the string is too long.")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-unicode-general-category-0.6
   (package
     (name "rust-unicode-general-category")
-- 
2.47.1