guix-devel
[Top][All Lists]
Advanced

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

[PATCH 61/86] gnu: Add rust-utf8-ranges.


From: ng0
Subject: [PATCH 61/86] gnu: Add rust-utf8-ranges.
Date: Tue, 3 Jan 2017 23:36:17 +0000

* gnu/packages/rust.scm (rust-utf8-ranges): New variable.
---
 gnu/packages/rust.scm | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)

diff --git a/gnu/packages/rust.scm b/gnu/packages/rust.scm
index 95699b682..9b3b62c0a 100644
--- a/gnu/packages/rust.scm
+++ b/gnu/packages/rust.scm
@@ -1683,3 +1683,28 @@ number of matches.")
      "@code{simd} offers limited cross-platform access to SIMD instructions on
 CPUs, as well as raw interfaces to platform-specific instructions.")
     (license (list license:expat license:asl2.0))))
+
+(define-public rust-utf8-ranges
+  (package
+    (name "rust-utf8-ranges")
+    (version "1.0.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "utf8-ranges" version))
+       (file-name
+        (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32
+         "08j129anwcbdwvcx1izb4nsf0nbxksin2zqxjbrfz2x94mjsnbv6"))))
+    (build-system cargo-build-system)
+    (native-inputs
+     `(("rust-quickcheck" ,rust-quickcheck "src")))
+    (home-page "https://github.com/BurntSushi/utf8-ranges";)
+    (synopsis "Convert contiguous ranges of Unicode codepoints to UTF-8 byte 
ranges")
+    (description
+     "@code{utf8-ranges} converts contiguous ranges of Unicode scalar
+values to UTF-8 byte ranges.  This is useful when constructing byte
+based automata from Unicode.  Stated differently, this lets one embed
+UTF-8 decoding as part of one's automaton.")
+    (license (list license:unlicense license:expat))))
-- 
2.11.0




reply via email to

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