guix-commits
[Top][All Lists]
Advanced

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

38/43: gnu: Add rust-unicode-width.


From: guix-commits
Subject: 38/43: gnu: Add rust-unicode-width.
Date: Mon, 12 Aug 2019 05:02:19 -0400 (EDT)

efraim pushed a commit to branch master
in repository guix.

commit 96bb8fd0657a98eb37e63d3b90bcfa1724c5c70d
Author: Efraim Flashner <address@hidden>
Date:   Sun Aug 4 14:09:25 2019 +0300

    gnu: Add rust-unicode-width.
    
    * gnu/packages/crates-io.scm (rust-unicode-width): New variable.
---
 gnu/packages/crates-io.scm | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index fe9aa43..142f4d1 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -801,6 +801,26 @@ with the Unicode character database.")
     (license (list license:asl2.0
                    license:expat))))
 
+(define-public rust-unicode-width
+  (package
+    (name "rust-unicode-width")
+    (version "0.1.5")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (crate-uri "unicode-width" version))
+        (file-name (string-append name "-" version ".tar.gz"))
+        (sha256
+         (base32
+          "09k5lipygardwy0660jhls08fsgknrazzivmn804gps53hiqc8w8"))))
+    (build-system cargo-build-system)
+    (home-page "https://github.com/unicode-rs/unicode-width";)
+    (synopsis "Determine displayed width according to Unicode rules")
+    (description "This crate allows you to determine displayed width of
+@code{char} and @code{str} types according to Unicode Standard Annex #11 
rules.")
+    (license (list license:asl2.0
+                   license:expat))))
+
 (define-public rust-unicode-xid
   (package
     (name "rust-unicode-xid")



reply via email to

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