guix-patches
[Top][All Lists]
Advanced

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

[bug#46192] [PATCH 06/22] gnu: Add rust-serde-repl-0.1.


From: aecepoglu
Subject: [bug#46192] [PATCH 06/22] gnu: Add rust-serde-repl-0.1.
Date: Sun, 31 Jan 2021 01:43:18 +0300

* gnu/packages/crates-io.scm (rust-serde-repl-0.1): New variable.
---
 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 6d0e2e1a2c..893070b6dd 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -31577,6 +31577,36 @@ using nested parameters, similar to those used by 
@code{qs} for Node, and
 commonly used by Ruby on Rails via Rack.")
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-serde-repr-0.1
+  (package
+    (name "rust-serde-repr")
+    (version "0.1.6")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (crate-uri "serde_repr" version))
+        (file-name
+          (string-append name "-" version ".tar.gz"))
+        (sha256
+          (base32
+            "0xhwamlb1ax3w87mpq0awcphwchprh93y1hb47rm3c0p3favgiid"))))
+    (build-system cargo-build-system)
+    (arguments
+      `(#:skip-build?
+        #t
+        #:cargo-inputs
+        (("rust-proc-macro2" ,rust-proc-macro2-1)
+         ("rust-quote" ,rust-quote-1)
+         ("rust-syn" ,rust-syn-1))))
+    (home-page "https://github.com/dtolnay/serde-repr";)
+    (synopsis
+      "Derive @code{Serialize} and @code{Deserialize} that delegates to the 
underlying
+repr of a C-like enum")
+    (description
+      "This library provides a macro to derive Serde's @code{Serialize} and
+ @code{Deserialize} that delegates to the underlying repr of a C-like enum")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-serde-stacker-0.1
   (package
     (name "rust-serde-stacker")
-- 
2.30.0






reply via email to

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