From f3fc593a7f1369ac9522e2e6ab07c5fca3fe1c13 Mon Sep 17 00:00:00 2001 From: Aleksandr Vityazev Date: Sat, 7 Oct 2023 03:02:06 +0300 Subject: gnu: Add rust-serde-with-3. * gnu/packages/crates-io.scm (rust-serde-with-3): New variable. Signed-off-by: Efraim Flashner --- gnu/packages/crates-io.scm | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) (limited to 'gnu') 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") -- cgit 1.4.1