Subject: [bug#67592] [PATCH 04/20] gnu: rust-time: Update to 0.3.30.

From: Rémi Teissier <[email-masked]>
Date: Tue, 12 Dec 2023 22:16:42 +0100

Change-Id: I1ec6d6d9d0d46606fbc8859c36770f1648bde8d4
---
 gnu/packages/crates-io.scm | 53 ++++++++++++++++++++++----------------
 1 file changed, 31 insertions(+), 22 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 0676042ef86..6115e258fc7 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -74145,31 +74145,40 @@ (define-public rust-tikv-jemalloc-ctl-0.4
 (define-public rust-time-0.3
   (package
     (name "rust-time")
-    (version "0.3.19")
+    (version "0.3.30")
     (source
-     (origin
-       (method url-fetch)
-       (uri (crate-uri "time" version))
-       (file-name (string-append name "-" version ".tar.gz"))
-       (sha256
-        (base32 "1hnnp3138zxk42r077jxhk1kma16bn9di1w5k3yzi3zd7wxhl9ak"))
-       (modules '((guix build utils)))
-       (snippet
-        '(begin (substitute* "Cargo.toml"
-                  (("=0\\.2\\.7") "^0.2.7"))))))
+      (origin
+         (method url-fetch)
+         (uri (crate-uri "time" version))
+         (file-name (string-append name "-" version ".tar.gz"))
+         (sha256
+           (base32 "1xgnflidij6361zjg4mzz4lqndayq1ph82n1cbjydppj02rlm8y4"))))
     (build-system cargo-build-system)
     (arguments
-     `(#:skip-build? #t
-       #:cargo-inputs
-       (("rust-itoa" ,rust-itoa-1)
-        ("rust-js-sys" ,rust-js-sys-0.3)
-        ("rust-libc" ,rust-libc-0.2)
-        ("rust-num-threads" ,rust-num-threads-0.1)
-        ("rust-quickcheck" ,rust-quickcheck-1)
-        ("rust-rand" ,rust-rand-0.8)
-        ("rust-serde" ,rust-serde-1)
-        ("rust-time-core" ,rust-time-core-0.1)
-        ("rust-time-macros" ,rust-time-macros-0.2))))
+      `(#:skip-build? #t
+        #:cargo-inputs
+        (("rust-deranged" ,rust-deranged-0.3)
+         ("rust-itoa" ,rust-itoa-1)
+         ("rust-js-sys" ,rust-js-sys-0.3)
+         ("rust-libc" ,rust-libc-0.2)
+         ("rust-num-threads" ,rust-num-threads-0.1)
+         ("rust-powerfmt" ,rust-powerfmt-0.2)
+         ("rust-quickcheck" ,rust-quickcheck-1)
+         ("rust-rand" ,rust-rand-0.8)
+         ("rust-serde" ,rust-serde-1)
+         ("rust-time-core" ,rust-time-core-0.1)
+         ("rust-time-macros" ,rust-time-macros-0.2))
+        #:cargo-development-inputs
+        (("rust-criterion" ,rust-criterion-0.5)
+         ("rust-quickcheck-macros" ,rust-quickcheck-macros-1)
+         ("rust-rand" ,rust-rand-0.8)
+         ("rust-rstest" ,rust-rstest-0.18)
+         ("rust-rstest-reuse" ,rust-rstest-reuse-0.6)
+         ("rust-serde" ,rust-serde-1)
+         ("rust-serde-json" ,rust-serde-json-1)
+         ("rust-serde-test" ,rust-serde-test-1)
+         ("rust-time-macros" ,rust-time-macros-0.2)
+         ("rust-trybuild" ,rust-trybuild-1))))
     (home-page "https://github.com/time-rs/time")
     (synopsis "Date and time library")
     (description "This package provides a date and time library.  It is fully
-- 
2.41.0