guix-commits
[Top][All Lists]
Advanced

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

394/422: gnu: Add rust-serde-with-macros-2.


From: guix-commits
Subject: 394/422: gnu: Add rust-serde-with-macros-2.
Date: Wed, 6 Nov 2024 04:03:13 -0500 (EST)

efraim pushed a commit to branch rust-team
in repository guix.

commit 9b9e93eac125d38d916f76e9644b092fa9f96a99
Author: Wilko Meyer <w@wmeyer.eu>
AuthorDate: Fri Oct 18 01:56:37 2024 +0200

    gnu: Add rust-serde-with-macros-2.
    
    * gnu/packages/crates-io.scm (rust-serde-with-macros-2): New variable.
    
    Change-Id: Ie249f2a21f79b913d3ebd72fece2839d1c6b610c
    Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
---
 gnu/packages/crates-io.scm | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 79b30fcaac..1dde365754 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -71928,6 +71928,36 @@ Rust's serde.")
 @code{serde_with}.")
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-serde-with-macros-2
+  (package
+    (inherit rust-serde-with-macros-3)
+    (name "rust-serde-with-macros")
+    (version "2.3.3")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "serde_with_macros" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0pv9wy1aihsaklg83qac4q0ksimbxcwwk56lwla35l8p3f46y6w8"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-test-flags '("--release" "--"
+                            ;; Not all files included.
+                            "--skip=test_serde_with_dependency")
+       #:cargo-inputs (("rust-darling" ,rust-darling-0.20)
+                       ("rust-proc-macro2" ,rust-proc-macro2-1)
+                       ("rust-quote" ,rust-quote-1)
+                       ("rust-syn" ,rust-syn-2))
+       #:cargo-development-inputs
+       (("rust-expect-test" ,rust-expect-test-1)
+        ("rust-pretty-assertions" ,rust-pretty-assertions-1)
+        ("rust-rustversion" ,rust-rustversion-1)
+        ("rust-serde" ,rust-serde-1)
+        ("rust-serde-json" ,rust-serde-json-1)
+        ("rust-trybuild" ,rust-trybuild-1)
+        ("rust-version-sync" ,rust-version-sync-0.9))))))
+
 (define-public rust-serde-with-macros-1
   (package
     (inherit rust-serde-with-macros-3)



reply via email to

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