summary refs log tree commit diff
path: root/gnu/packages
diff options
context:
space:
mode:
authorAleksandr Vityazev <avityazew@gmail.com>2023-10-07 03:02:06 +0300
committerEfraim Flashner <efraim@flashner.co.il>2023-10-22 13:19:22 +0300
commitf3fc593a7f1369ac9522e2e6ab07c5fca3fe1c13 (patch)
treec0c6e94159b2d0aabf34bb6789aeaf6c1470d91b /gnu/packages
parent55df233474cde107b5a33caa3ea6fca822a6298a (diff)
downloadguix-f3fc593a7f1369ac9522e2e6ab07c5fca3fe1c13.tar.gz
gnu: Add rust-serde-with-3.
* gnu/packages/crates-io.scm (rust-serde-with-3): New variable.

Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/crates-io.scm45
1 files changed, 45 insertions, 0 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 902fc73542..e07d57b55c 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -63297,6 +63297,51 @@ the application/x-www-form-urlencoded format.")
 for later processing.")
     (license license:expat)))
 
+(define-public rust-serde-with-3
+  (package
+    (name "rust-serde-with")
+    (version "3.0.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "serde-with" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "04w5v0siychbb7l3anx57crvv9m3w866ckwjhkq5nf1wdsmdh0lz"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:tests? #f      ; could not find `Deserializer` in `serde_test`
+       #:cargo-inputs
+       (("rust-base64" ,rust-base64-0.21)
+        ("rust-chrono" ,rust-chrono-0.4)
+        ("rust-doc-comment" ,rust-doc-comment-0.3)
+        ("rust-hex" ,rust-hex-0.4)
+        ("rust-indexmap" ,rust-indexmap-1)
+        ("rust-serde" ,rust-serde-1)
+        ("rust-serde-json" ,rust-serde-json-1)
+        ("rust-serde-with-macros" ,rust-serde-with-macros-3)
+        ("rust-time" ,rust-time-0.3))
+       #:cargo-development-inputs
+       (("rust-expect-test" ,rust-expect-test-1)
+        ("rust-fnv" ,rust-fnv-1)
+        ("rust-glob" ,rust-glob-0.3)
+        ("rust-mime" ,rust-mime-0.3)
+        ("rust-pretty-assertions" ,rust-pretty-assertions-1)
+        ("rust-regex" ,rust-regex-1)
+        ("rust-rmp-serde" ,rust-rmp-serde-1)
+        ("rust-ron" ,rust-ron-0.8)
+        ("rust-rustversion" ,rust-rustversion-1)
+        ("rust-serde-xml-rs" ,rust-serde-xml-rs-0.6)
+        ("rust-serde-json" ,rust-serde-json-1)
+        ("rust-serde-test" ,rust-serde-test-1)
+        ("rust-serde-yaml" ,rust-serde-yaml-0.9)
+        ("rust-version-sync" ,rust-version-sync-0.9))))
+    (home-page "https://github.com/jonasbb/serde_with/")
+    (synopsis "Custom de/serialization functions for Rust's serde")
+    (description "This package provides custom de/serialization functions for
+Rust's serde.")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-serde-with-macros-3
   (package
     (name "rust-serde-with-macros")