summary refs log tree commit diff
path: root/gnu/packages
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2024-01-02 21:09:49 +0200
committerEfraim Flashner <efraim@flashner.co.il>2024-02-20 13:57:04 +0200
commitcc6c995af37901ad8c0d1f7f8c956f1fb87b1018 (patch)
tree9798e92df277b567ee763d816a0587a23512f4a1 /gnu/packages
parent321f1f4d2040010a295fe12cbed8dbb311d7c8e5 (diff)
downloadguix-cc6c995af37901ad8c0d1f7f8c956f1fb87b1018.tar.gz
gnu: Add rust-serde-untagged-0.1.
* gnu/packages/crates-io.scm (rust-serde-untagged-0.1): New variable.

Change-Id: Ib3fe2b1ee9c4ce9e6442311256af8eb8da7a3f72
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/crates-io.scm24
1 files changed, 24 insertions, 0 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index c124054c46..173eb00e15 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -64331,6 +64331,30 @@ by dynamically growing the stack.")
                ((", path = \"../serde\"") ""))
              #t)))))))
 
+(define-public rust-serde-untagged-0.1
+  (package
+    (name "rust-serde-untagged")
+    (version "0.1.4")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "serde-untagged" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1b2x30zczv16q6xakjlh1mhn6y1m2ww994szxfhlnryqfc1y13jc"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-erased-serde" ,rust-erased-serde-0.4)
+                       ("rust-serde" ,rust-serde-1))
+       #:cargo-development-inputs (("rust-serde-derive" ,rust-serde-derive-1)
+                                   ("rust-serde-json" ,rust-serde-json-1)
+                                   ("rust-toml" ,rust-toml-0.8))))
+    (home-page "https://github.com/dtolnay/serde-untagged")
+    (synopsis "Serde `Visitor` implementation for deserializing untagged enums")
+    (description "This package is a Serde `Visitor` implementation for
+deserializing untagged enums.")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-serde-urlencoded-0.7
   (package
     (name "rust-serde-urlencoded")