Subject: [PATCH rust-team v2 57/68] gnu: rust-bincode-derive-2: New variable.

From: Aaron Covrig <[email-masked]>
Date: Tue, 18 Mar 2025 21:19:15 -0400

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

Signed-off-by: Aaron Covrig <[email-masked]>
---
 gnu/packages/crates-io.scm | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index e6a8c21f66..9c86855d23 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -7178,6 +7178,31 @@ (define-public rust-bincode-1
 that uses Serde for transforming structs into bytes and vice versa!")
     (license license:expat)))
 
+(define-public rust-bincode-derive-2
+  (package
+    (name "rust-bincode-derive")
+    (version "2.0.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "bincode_derive" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "029wmh26hq3hhs1gq629y0frn2pkl7ld061rk23fji8g8jd715dz"))
+       (snippet
+        #~(begin (use-modules (guix build utils))
+                 ;; Claims to require rust 1.85.0 when it actually doesn't
+                 (substitute* "Cargo.toml"
+                   (("rust-version =.*") ""))))))
+    (build-system cargo-build-system)
+    (arguments (list #:cargo-inputs (list rust-virtue-0.0.18)))
+    (home-page "https://github.com/bincode-org/bincode")
+    (synopsis
+     "Implementation of #[derive(Encode, Decode)] for bincode")
+    (description "The derive crate for bincode. Implements
++@code{bincode::Encode} and @code{bincode::Decode}.")
+    (license license:expat)))
+
 (define-public rust-bindgen-0.71
   (package
     (name "rust-bindgen")
-- 
2.48.1