Subject: [bug#70146] [PATCH 036/147] gnu: Add rust-wasmparser-0.118.

From: Jean-Pierre De Jesus DIAZ <[email-masked]>
Date: Tue, 2 Apr 2024 18:03:48 +0200

* gnu/packages/crates-io.scm (rust-wasmparser-0.118): New variable.
(rust-wasmparser-0.57): Inherit from rust-wasmparser-0.118.

Change-Id: Id47d9d90c5d2f03660f06a59ce265a85921a5e6a
---
 gnu/packages/crates-io.scm | 19 ++++++++++++++++++-
 1 file changed, 18 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index a2b44cac1e..44a1245e7e 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -77850,10 +77850,27 @@ (define-public rust-wasmparser-0.121
                        ("rust-indexmap" ,rust-indexmap-2)
                        ("rust-semver" ,rust-semver-1))))))
 
-(define-public rust-wasmparser-0.57
+(define-public rust-wasmparser-0.118
   (package
     (inherit rust-wasmparser-0.121)
     (name "rust-wasmparser")
+    (version "0.118.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "wasmparser" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0365n7dd01fh2jklq6q41nszhyyaz82shd4q3nhf4s5q397ibwbp"))))
+    (arguments
+     `(#:skip-build? #t
+       #:cargo-inputs (("rust-indexmap" ,rust-indexmap-2)
+                       ("rust-semver" ,rust-semver-1))))))
+
+(define-public rust-wasmparser-0.57
+  (package
+    (inherit rust-wasmparser-0.118)
+    (name "rust-wasmparser")
     (version "0.57.0")
     (source
      (origin
-- 
2.41.0