summary refs log tree commit diff
path: root/gnu
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2019-10-23 10:07:38 +0300
committerEfraim Flashner <efraim@flashner.co.il>2019-10-23 10:44:00 +0300
commit21bd039800b209b9d68b2074be7f4258f092a7b0 (patch)
tree3b62db93073cc9ed5eb81737153e6e3f1810f2a4 /gnu
parent5cf89cec6c8daeb9c77dc06f9a93a7bbac6651c4 (diff)
downloadguix-21bd039800b209b9d68b2074be7f4258f092a7b0.tar.gz
gnu: Add rust-unicode-width-0.1.
* gnu/packages/rust-cbindgen.scm (rust-unicode-width-0.1): New hidden
variable.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/rust-cbindgen.scm21
1 files changed, 21 insertions, 0 deletions
diff --git a/gnu/packages/rust-cbindgen.scm b/gnu/packages/rust-cbindgen.scm
index 51eb647453..b0b771ec62 100644
--- a/gnu/packages/rust-cbindgen.scm
+++ b/gnu/packages/rust-cbindgen.scm
@@ -818,3 +818,24 @@ serializing Rust structures.")
     (properties '((hidden? . #t)))
     (license (list license:asl2.0
                    license:expat))))
+
+(define rust-unicode-width-0.1
+  (package
+    (name "rust-unicode-width")
+    (version "0.1.6")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (crate-uri "unicode-width" version))
+        (file-name (string-append name "-" version ".crate"))
+        (sha256
+         (base32
+          "082f9hv1r3gcd1xl33whjhrm18p0w9i77zhhhkiccb5r47adn1vh"))))
+    (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.")
+    (properties '((hidden? . #t)))
+    (license (list license:asl2.0
+                   license:expat))))