[bug#74743,rust-team,v2,57/68] gnu: rust-bincode-derive-2: New variable.

Message ID 20250319011932.1899508-58-aaron.covrig.us@ieee.org
State New
Headers
Series Assorted rust-* package upgrades |

Commit Message

Aaron Covrig March 19, 2025, 1:19 a.m. UTC
  * gnu/packages/crates-io.scm (rust-bincode-derive-2): New variable.

Signed-off-by: Aaron Covrig <aaron.covrig.us@ieee.org>
---
 gnu/packages/crates-io.scm | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)
  

Patch

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")