guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

14/40: gnu: Add rust-rmp-serde-1.


From: guix-commits
Subject: 14/40: gnu: Add rust-rmp-serde-1.
Date: Sun, 22 Oct 2023 09:40:29 -0400 (EDT)

efraim pushed a commit to branch master
in repository guix.

commit a72d97dc5009ba281e88db199ab83897517ae72c
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Sun Oct 22 13:20:49 2023 +0300

    gnu: Add rust-rmp-serde-1.
    
    * gnu/packages/crates-io.scm (rust-rmp-serde-1): New variable.
    (rust-rmp-serde-0.15): Inherit from rust-rmp-serde-1.
---
 gnu/packages/crates-io.scm | 32 +++++++++++++++++++++++++++-----
 1 file changed, 27 insertions(+), 5 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 26b41c2185..af6f0777e2 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -57273,29 +57273,51 @@ writers and readers for primitive values with direct 
mapping between binary
 MessagePack format.")
     (license license:expat)))
 
-(define-public rust-rmp-serde-0.15
+(define-public rust-rmp-serde-1
   (package
     (name "rust-rmp-serde")
-    (version "0.15.5")
+    (version "1.1.2")
     (source
      (origin
        (method url-fetch)
        (uri (crate-uri "rmp-serde" version))
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
-        (base32 "178f4qlicldm9iy74q4wdqldk5i11p1ad30wzs9avx04mpwwygkj"))))
+        (base32 "12i5aglyni58hlq19pi58z1z6a1hv6l04p9y8ms8l3cqx9gaizmz"))))
     (build-system cargo-build-system)
     (arguments
-     `(#:skip-build? #t
+     `(#:tests? #f      ; use of undeclared crate or module `rmpv`
        #:cargo-inputs
        (("rust-byteorder" ,rust-byteorder-1)
         ("rust-rmp" ,rust-rmp-0.8)
-        ("rust-serde" ,rust-serde-1))))
+        ("rust-serde" ,rust-serde-1))
+       #:cargo-development-inputs
+       (("rust-serde-bytes" ,rust-serde-bytes-0.11)
+        ("rust-serde-derive" ,rust-serde-derive-1))))
     (home-page "https://github.com/3Hren/msgpack-rust";)
     (synopsis "Serde bindings for RMP")
     (description "This crate provides Serde bindings for RMP.")
     (license license:expat)))
 
+(define-public rust-rmp-serde-0.15
+  (package
+    (inherit rust-rmp-serde-1)
+    (name "rust-rmp-serde")
+    (version "0.15.5")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "rmp-serde" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "178f4qlicldm9iy74q4wdqldk5i11p1ad30wzs9avx04mpwwygkj"))))
+    (arguments
+     `(#:skip-build? #t
+       #:cargo-inputs
+       (("rust-byteorder" ,rust-byteorder-1)
+        ("rust-rmp" ,rust-rmp-0.8)
+        ("rust-serde" ,rust-serde-1))))))
+
 (define-public rust-rmp-serde-0.13
   (package
     (name "rust-rmp-serde")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]