Subject: [PATCH 3/8] gnu: Add rust-serde-with-2.

From: Wilko Meyer <[email-masked]>
Date: Fri, 18 Oct 2024 01:56:36 +0200

* gnu/packages/crates-io.scm (rust-serde-with-2): New variable.

Change-Id: Id87ef999e536cbc9ce6ed4f3ef37168e19187fba
---
 gnu/packages/crates-io.scm | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 6354b3ed93..8b0d9a5011 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -70038,6 +70038,30 @@ (define-public rust-serde-with-3
 Rust's serde.")
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-serde-with-2
+  (package
+    (inherit rust-serde-with-3)
+    (name "rust-serde-with")
+    (version "2.3.3")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "serde_with" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1gmgl2raxxnpvjgcvkrimgv55kbjywi5xbffc9rvb9s7q7973zq7"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-base64" ,rust-base64-0.13)
+                       ("rust-chrono" ,rust-chrono-0.4)
+                       ("rust-doc-comment" ,rust-doc-comment-0.3)
+                       ("rust-hex" ,rust-hex-0.4)
+                       ("rust-indexmap" ,rust-indexmap-1)
+                       ("rust-serde" ,rust-serde-1)
+                       ("rust-serde-json" ,rust-serde-json-1)
+                       ("rust-serde-with-macros" ,rust-serde-with-macros-2)
+                       ("rust-time" ,rust-time-0.3))))))
+
 (define-public rust-serde-with-1
   (package
     (inherit rust-serde-with-3)
-- 
2.46.0