gnu: Add rust-untrusted.
authorEfraim Flashner <efraim@flashner.co.il>
Wed, 28 Aug 2019 13:47:54 +0000 (16:47 +0300)
committerEfraim Flashner <efraim@flashner.co.il>
Wed, 28 Aug 2019 13:53:09 +0000 (16:53 +0300)
* gnu/packages/crates-io.scm (rust-untrusted): New variable.

gnu/packages/crates-io.scm

index 436a847..1b9127b 100644 (file)
@@ -1832,6 +1832,26 @@ whitespace from a string.")
     (license (list license:asl2.0
                    license:expat))))
 
+(define-public rust-untrusted
+  (package
+    (name "rust-untrusted")
+    (version "0.7.0")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (crate-uri "untrusted" version))
+        (file-name (string-append name "-" version ".tar.gz"))
+        (sha256
+         (base32
+          "1kmfykcwif6ashkwg54gcnhxj03kpba2i9vc7z5rpr0xlgvrwdk0"))))
+    (build-system cargo-build-system)
+    (home-page "https://github.com/briansmith/untrusted")
+    (synopsis "Zero-allocation parsing of untrusted inputs in Rust")
+    (description
+     "Safe, fast, zero-panic, zero-crashing, zero-allocation parsing of
+untrusted inputs in Rust.")
+    (license license:isc)))
+
 (define-public rust-wasi
   (package
     (name "rust-wasi")