Subject: [bug#69257] [PATCH 146/228] gnu: Add rust-js-option-0.1.

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

* gnu/packages/crates-web.scm (rust-js-option-0.1): Add variable.

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

diff --git a/gnu/packages/crates-web.scm b/gnu/packages/crates-web.scm
index 0572eee6fc..3875e0153c 100644
--- a/gnu/packages/crates-web.scm
+++ b/gnu/packages/crates-web.scm
@@ -3361,6 +3361,29 @@ (define-public rust-js-int-0.2
       "This package provides JavaScript-interoperable integer types.")
     (license license:expat)))
 
+(define-public rust-js-option-0.1
+  (package
+    (name "rust-js-option")
+    (version "0.1.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "js_option" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0g2273zp51nik16s95zyxqhv5qh6ybdrhdh1cykr65bsjmri6hk8"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-serde" ,rust-serde-1))
+       #:cargo-development-inputs (("rust-serde" ,rust-serde-1)
+                                   ("rust-serde-json" ,rust-serde-json-1))))
+    (home-page "https://github.com/ruma/js_option")
+    (synopsis "Option-like type with null and undefined variants")
+    (description
+     "This package provides an Option-like type with separate null and
+undefined variants.")
+    (license license:expat)))
+
 (define-public rust-json5-0.4
   (package
     (name "rust-json5")
-- 
2.41.0