Subject: [bug#69257] [PATCH 220/228] gnu: Add rust-weedle2-4.

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

* gnu/packages/crates-io.scm (rust-weedle2-4): Add variable.

Change-Id: I5fa4769fd2b986c555e1d2441612e631bb87b645
---
 gnu/packages/crates-io.scm | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 9743b5a40d..856fa6307c 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -81444,6 +81444,26 @@ (define-public rust-wee-alloc-0.4
     (description "wee_alloc: The Wasm-Enabled, Elfin Allocator.")
     (license license:mpl2.0)))
 
+(define-public rust-weedle2-4
+  (package
+    (name "rust-weedle2")
+    (version "4.0.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "weedle2" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0hbph2pwmwvkn6lcbrpjc24j5r2y0aaxnjyndwqa4hqzdqhcay9f"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-nom" ,rust-nom-7))
+       #:cargo-development-inputs (("rust-fs-err" ,rust-fs-err-2))))
+    (home-page "https://github.com/mozilla/uniffi-rs/tree/main/weedle2")
+    (synopsis "WebIDL parser")
+    (description "This package provides a @code{WebIDL} parser.")
+    (license license:expat)))
+
 (define-public rust-weezl-0.1
   (package
     (name "rust-weezl")
-- 
2.41.0