Subject: [PATCH 46/49] gnu: Add rust-generator.

From: Danny Milosavljevic <[email-masked]>
Date: Thu, 22 Apr 2021 12:22:05 +0200

* gnu/packages/crates-io.scm (rust-generator-0.7): New variable.
---
 gnu/packages/crates-io.scm | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index e1339b8835..c120c55d8b 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -51371,3 +51371,33 @@ configuration file and/or environment variables.")
       "Hypothesis-like property-based testing and shrinking.
 ")
     (license (list license:expat license:asl2.0))))
+
+(define-public rust-generator-0.7
+  (package
+    (name "rust-generator")
+    (version "0.7.0")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (crate-uri "generator" version))
+        (file-name
+          (string-append name "-" version ".tar.gz"))
+        (sha256
+          (base32
+            "1vhj3f0rf4mlh5vz7pz5rxmgry1cc62x21mf9ld1r292m2f2gnf1"))))
+    (build-system cargo-build-system)
+    (arguments
+      `(#:skip-build?
+        #t
+        #:cargo-inputs
+        (("rust-cc" ,rust-cc-1)
+         ("rust-libc" ,rust-libc-0.2)
+         ("rust-log" ,rust-log-0.4)
+         ("rust-rustversion" ,rust-rustversion-1)
+         ("rust-winapi" ,rust-winapi-0.3))))
+    (home-page
+      "https://github.com/Xudong-Huang/generator-rs.git")
+    (synopsis "Stackfull Generator Library in Rust")
+    (description
+      "Stackfull Generator Library in Rust")
+    (license (list license:expat license:asl2.0))))
-- 
2.29.2