Subject: [PATCH 12/32] gnu: Add rust-criterion-plot-0.5.

From: Arjan Adriaanse <[email-masked]>
Date: Sat, 4 Mar 2023 15:00:54 +0100

* gnu/packages/crates-io.scm (rust-criterion-plot-0.5): New variable.
(rust-criterion-plot-0.4): Inherit from above.
---
 gnu/packages/crates-io.scm | 34 ++++++++++++++++++++++++++++------
 1 file changed, 28 insertions(+), 6 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 08424cbdf8..00e5047cfc 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -13510,10 +13510,10 @@ (define-public rust-criterion-cycles-per-byte-0.1
 criterion.")
     (license (list license:expat license:asl2.0))))
 
-(define-public rust-criterion-plot-0.4
+(define-public rust-criterion-plot-0.5
   (package
     (name "rust-criterion-plot")
-    (version "0.4.4")
+    (version "0.5.0")
     (source
      (origin
        (method url-fetch)
@@ -13521,21 +13521,43 @@ (define-public rust-criterion-plot-0.4
        (file-name
         (string-append name "-" version ".tar.gz"))
        (sha256
-        (base32 "0mys2zkizh5az6ax77m5aqifk0vz35rn0a6wykvmjx9gkzg9c2fh"))))
+        (base32 "1c866xkjqqhzg4cjvg01f8w6xc1j3j7s58rdksl52skq89iq4l3b"))))
     (build-system cargo-build-system)
     (arguments
      `(#:cargo-inputs
-       (("rust-cast" ,rust-cast-0.2)
+       (("rust-cast" ,rust-cast-0.3)
         ("rust-itertools" ,rust-itertools-0.10))
        #:cargo-development-inputs
        (("rust-itertools-num" ,rust-itertools-num-0.1)
-        ("rust-num-complex" ,rust-num-complex-0.2)
-        ("rust-rand" ,rust-rand-0.4))))
+        ("rust-num-complex" ,rust-num-complex-0.4)
+        ("rust-rand" ,rust-rand-0.8))))
     (home-page "https://github.com/bheisler/criterion.rs")
     (synopsis "Criterion's plotting library")
     (description "This package provides criterion's plotting library.")
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-criterion-plot-0.4
+  (package
+    (inherit rust-criterion-plot-0.5)
+    (name "rust-criterion-plot")
+    (version "0.4.4")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "criterion-plot" version))
+       (file-name
+        (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0mys2zkizh5az6ax77m5aqifk0vz35rn0a6wykvmjx9gkzg9c2fh"))))
+    (arguments
+     `(#:cargo-inputs
+       (("rust-cast" ,rust-cast-0.2)
+        ("rust-itertools" ,rust-itertools-0.10))
+       #:cargo-development-inputs
+       (("rust-itertools-num" ,rust-itertools-num-0.1)
+        ("rust-num-complex" ,rust-num-complex-0.2)
+        ("rust-rand" ,rust-rand-0.4))))))
+
 (define-public rust-criterion-plot-0.3
   (package
     (inherit rust-criterion-plot-0.4)
-- 
2.39.1