Subject: [PATCH 118/228] gnu: Add rust-json5-0.4.

From: Herman Rimm <[email-masked]>
Date: Sun, 18 Feb 2024 22:08:08 +0100

* gnu/packages/crates-web.scm (rust-json5-0.4): Add variable.

Change-Id: I343686d8d1a484f1f351fe99c036e3bab06380c9
---
 gnu/packages/crates-web.scm | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/gnu/packages/crates-web.scm b/gnu/packages/crates-web.scm
index afd85d4d1e..2865501278 100644
--- a/gnu/packages/crates-web.scm
+++ b/gnu/packages/crates-web.scm
@@ -3340,6 +3340,32 @@ (define-public rust-isahc-0.9
         ("rust-test-case" ,rust-test-case-1)
         ("rust-tracing-subscriber" ,rust-tracing-subscriber-0.2))))))
 
+(define-public rust-json5-0.4
+  (package
+    (name "rust-json5")
+    (version "0.4.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "json5" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1h9hni897zmn3vcixfbwwkj2gkz27h7z9dah8bk1qv37mwhxpc4n"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-pest" ,rust-pest-2)
+                       ("rust-pest-derive" ,rust-pest-derive-2)
+                       ("rust-serde" ,rust-serde-1))
+       #:cargo-development-inputs (("rust-matches" ,rust-matches-0.1)
+                                   ("rust-serde-derive" ,rust-serde-derive-1)
+                                   ("rust-serde-json" ,rust-serde-json-1))))
+    (home-page "https://github.com/callum-oakley/json5-rs")
+    (synopsis "Rust JSON5 serializer and deserializer which speaks Serde")
+    (description
+     "This package provides a Rust JSON5 serializer and deserializer
+which speaks Serde.")
+    (license license:isc)))
+
 (define-public rust-mas-http-0.7
   (package
     (name "rust-mas-http")
-- 
2.41.0