Subject: [PATCH 23/55] gnu: Add rust-rstest-0.18.

From: Jaeme Sifat <[email-masked]>
Date: Tue, 19 Dec 2023 22:54:45 -0500

Reduce dependency graph for other crates as well by skipping the build step.

* gnu/packages/crates-io.scm (rust-rstest-0.18): New variable.
* gnu/packages/crates-io.scm (rust-rstest-0.16): Skip build.
* gnu/packages/crates-io.scm (rust-rstest-0.9): Skip build.
* gnu/packages/crates-io.scm (rust-rstest-0.8): Skip build.
* gnu/packages/crates-io.scm (rust-rstest-0.7): Skip build.

Change-Id: I967af7e96a677cfe622c48fddb5d93f5daaf16c4
---
 gnu/packages/crates-io.scm | 90 ++++++++++++++------------------------
 1 file changed, 34 insertions(+), 56 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 4c2cde2b02..41267516f9 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -63712,36 +63712,24 @@ (define-public rust-rstar-0.8
                                    ("rust-rand-hc" ,rust-rand-hc-0.2)
                                    ("rust-serde-json" ,rust-serde-json-1))))))
 
-(define-public rust-rstest-0.16
+(define-public rust-rstest-0.18
   (package
     (name "rust-rstest")
-    (version "0.16.0")
+    (version "0.18.2")
     (source
      (origin
        (method url-fetch)
        (uri (crate-uri "rstest" version))
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
-        (base32 "1pqfpj727hkn4rr7nspnaab0h74gl9yxqlb53vn9h8a7dhbjszxh"))))
+        (base32 "1681ncnlzhc8894idm3pqf40nndn4k4kcp0kpv29n68a7hpspvlp"))))
     (build-system cargo-build-system)
     (arguments
-     `(#:tests? #f
-       #:cargo-inputs
-       (("rust-futures" ,rust-futures-0.3)
-        ("rust-futures-timer" ,rust-futures-timer-3)
-        ("rust-rstest-macros" ,rust-rstest-macros-0.16)
-        ("rust-rustc-version" ,rust-rustc-version-0.4))
-       #:cargo-development-inputs
-       (("rust-actix-rt" ,rust-actix-rt-2)
-        ("rust-async-std" ,rust-async-std-1)
-        ("rust-lazy-static" ,rust-lazy-static-1)
-        ("rust-pretty-assertions" ,rust-pretty-assertions-1)
-        ("rust-rstest" ,rust-rstest-0.13)
-        ("rust-rstest-reuse" ,rust-rstest-reuse-0.4)
-        ("rust-rstest-test" ,rust-rstest-test-0.9)
-        ("rust-temp-testdir" ,rust-temp-testdir-0.2)
-        ("rust-tokio" ,rust-tokio-1)
-        ("rust-unindent" ,rust-unindent-0.1))))
+     `(#:skip-build? #t
+       #:cargo-inputs (("rust-futures" ,rust-futures-0.3)
+                       ("rust-futures-timer" ,rust-futures-timer-3)
+                       ("rust-rstest-macros" ,rust-rstest-macros-0.18)
+                       ("rust-rustc-version" ,rust-rustc-version-0.4))))
     (home-page "https://github.com/la10736/rstest")
     (synopsis "Rust fixture based test framework")
     (description
@@ -63749,6 +63737,26 @@ (define-public rust-rstest-0.16
 and table-based tests.")
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-rstest-0.16
+  (package
+    (inherit rust-rstest-0.18)
+    (name "rust-rstest")
+    (version "0.16.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "rstest" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1pqfpj727hkn4rr7nspnaab0h74gl9yxqlb53vn9h8a7dhbjszxh"))))
+    (arguments
+     `(#:skip-build? #t
+       #:cargo-inputs
+       (("rust-futures" ,rust-futures-0.3)
+        ("rust-futures-timer" ,rust-futures-timer-3)
+        ("rust-rstest-macros" ,rust-rstest-macros-0.16)
+        ("rust-rustc-version" ,rust-rustc-version-0.4))))))
+
 (define-public rust-rstest-0.15
   (package
     (inherit rust-rstest-0.16)
@@ -63865,23 +63873,13 @@ (define-public rust-rstest-0.9
        (sha256
         (base32 "07b4j1wkrv7l5c4wyqylr7f1wsif5qwmixg5nbycyq648njqcz67"))))
     (arguments
-     `(#:tests? #f
+     `(#:skip-build? #t
        #:cargo-inputs
        (("rust-cfg-if" ,rust-cfg-if-1)
         ("rust-proc-macro2" ,rust-proc-macro2-1)
         ("rust-quote" ,rust-quote-1)
         ("rust-rustc-version" ,rust-rustc-version-0.3)
-        ("rust-syn" ,rust-syn-1))
-       #:cargo-development-inputs
-       (("rust-actix-rt" ,rust-actix-rt-2)
-        ("rust-async-std" ,rust-async-std-1)
-        ("rust-lazy-static" ,rust-lazy-static-1)
-        ("rust-pretty-assertions" ,rust-pretty-assertions-0.7)
-        ("rust-rstest" ,rust-rstest-0.8)
-        ("rust-rstest-reuse" ,rust-rstest-reuse-0.1)
-        ("rust-rstest-test" ,rust-rstest-test-0.2)
-        ("rust-temp-testdir" ,rust-temp-testdir-0.2)
-        ("rust-unindent" ,rust-unindent-0.1))))))
+        ("rust-syn" ,rust-syn-1))))))
 
 (define-public rust-rstest-0.8
   (package
@@ -63896,23 +63894,13 @@ (define-public rust-rstest-0.8
        (sha256
         (base32 "0zqb6ab637w04vblv9ys6nw9j54zhz5b74gfh0wfjcjndhrwlqdr"))))
     (arguments
-     `(#:tests? #f
+     `(#:skip-build? #t
        #:cargo-inputs
        (("rust-cfg-if" ,rust-cfg-if-1)
         ("rust-proc-macro2" ,rust-proc-macro2-1)
         ("rust-quote" ,rust-quote-1)
         ("rust-rustc-version" ,rust-rustc-version-0.3)
-        ("rust-syn" ,rust-syn-1))
-       #:cargo-development-inputs
-       (("rust-actix-rt" ,rust-actix-rt-2)
-        ("rust-async-std" ,rust-async-std-1)
-        ("rust-lazy-static" ,rust-lazy-static-1)
-        ("rust-pretty-assertions" ,rust-pretty-assertions-0.7)
-        ("rust-rstest" ,rust-rstest-0.7)
-        ("rust-rstest-reuse" ,rust-rstest-reuse-0.1)
-        ("rust-rstest-test" ,rust-rstest-test-0.2)
-        ("rust-temp-testdir" ,rust-temp-testdir-0.2)
-        ("rust-unindent" ,rust-unindent-0.1))))))
+        ("rust-syn" ,rust-syn-1))))))
 
 (define-public rust-rstest-0.7
   (package
@@ -63927,23 +63915,13 @@ (define-public rust-rstest-0.7
        (sha256
         (base32 "1iiw4gv79ghfv8znh3d5r2px1cbl4x8zjbi9x1q8ahzxghgbqmjh"))))
     (arguments
-     `(#:tests? #f
+     `(#:skip-build? #t
        #:cargo-inputs
        (("rust-cfg-if" ,rust-cfg-if-1)
         ("rust-proc-macro2" ,rust-proc-macro2-1)
         ("rust-quote" ,rust-quote-1)
         ("rust-rustc-version" ,rust-rustc-version-0.3)
-        ("rust-syn" ,rust-syn-1))
-       #:cargo-development-inputs
-       (("rust-actix-rt" ,rust-actix-rt-2)
-        ("rust-async-std" ,rust-async-std-1)
-        ("rust-lazy-static" ,rust-lazy-static-1)
-        ("rust-pretty-assertions" ,rust-pretty-assertions-0.7)
-        ("rust-rstest" ,rust-rstest-0.6)
-        ("rust-rstest-reuse" ,rust-rstest-reuse-0.1)
-        ("rust-rstest-test" ,rust-rstest-test-0.2)
-        ("rust-temp-testdir" ,rust-temp-testdir-0.2)
-        ("rust-unindent" ,rust-unindent-0.1))))))
+        ("rust-syn" ,rust-syn-1))))))
 
 (define-public rust-rstest-0.6
   (package
-- 
2.41.0