guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

06/135: gnu: Add rust-unicode-truncate-0.2.


From: guix-commits
Subject: 06/135: gnu: Add rust-unicode-truncate-0.2.
Date: Wed, 27 Mar 2024 04:54:38 -0400 (EDT)

efraim pushed a commit to branch rust-team
in repository guix.

commit a6991a6a151cc2fbfb629f7bf17f7fff4bbc1a6f
Author: VÖRÖSKŐI András <voroskoi@gmail.com>
AuthorDate: Sat Feb 24 21:39:03 2024 +0100

    gnu: Add rust-unicode-truncate-0.2.
    
    * gnu/packages/crates-io.scm (rust-unicode-truncate): New variable.
    
    Change-Id: I9428c1d2fa463fd6254f1c1e0f52568ed77989bc
    Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
---
 gnu/packages/crates-io.scm | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 11fcbb9981..77a4400a2f 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -81515,6 +81515,28 @@ described in Unicode Standard Annex #15.")
 boundaries according to Unicode Standard Annex #29 rules.")
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-unicode-truncate-0.2
+  (package
+    (name "rust-unicode-truncate")
+    (version "0.2.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "unicode-truncate" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0hlf6k1d7s1qqdvhxwh4xl8wd1wvqm0vr0pazxq74jksbz5fajx0"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-unicode-width" ,rust-unicode-width-0.1))
+       #:cargo-development-inputs (("rust-criterion" ,rust-criterion-0.3))))
+    (home-page "https://github.com/Aetf/unicode-truncate";)
+    (synopsis "Unicode-aware `str` truncate")
+    (description
+     "This package provides a unicode-aware algorithm to pad or truncate `str`
+in terms of displayed width.")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-unicode-width-0.1
   (package
     (name "rust-unicode-width")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]