Subject: [PATCH 034/147] gnu: Add rust-wasmparser-0.201.

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

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

Change-Id: I249902ef724d6e28b4e77f06340cad2beb20240c
---
 gnu/packages/crates-io.scm | 29 +++++++++++++++++++++++++----
 1 file changed, 25 insertions(+), 4 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 57d9d862de..2d578ff54d 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -77807,26 +77807,47 @@ (define-public rust-wasm-streams-0.2
         ("rust-wasm-bindgen-test" ,rust-wasm-bindgen-test-0.3)
         ("rust-web-sys" ,rust-web-sys-0.3))))))
 
-(define-public rust-wasmparser-0.57
+(define-public rust-wasmparser-0.201
   (package
     (name "rust-wasmparser")
-    (version "0.57.0")
+    (version "0.201.0")
     (source
      (origin
        (method url-fetch)
        (uri (crate-uri "wasmparser" version))
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
-        (base32 "19kslk9pv1bcyp85w63dn1adbp13kz7kjha80abnwz27bmbxvz9j"))))
+        (base32 "027pdclgl642hqzdi592nnhdf7j570bhyi9sqsppy3bcp9nxzrc4"))))
     (build-system cargo-build-system)
-    (arguments `(#:skip-build? #t))
+    (arguments
+     `(#:skip-build? #t
+       #:cargo-inputs (("rust-bitflags" ,rust-bitflags-2)
+                       ("rust-indexmap" ,rust-indexmap-2)
+                       ("rust-semver" ,rust-semver-1))))
     (home-page "https://github.com/bytecodealliance/wasm-tools/tree/main/crates/wasmparser")
     (synopsis "Simple event-driven library for parsing WebAssembly binary files")
     (description
      "This package provides a simple event-driven library for parsing
 WebAssembly binary files.")
+    ;; With LLVM exception.
     (license license:asl2.0)))
 
+
+(define-public rust-wasmparser-0.57
+  (package
+    (inherit rust-wasmparser-0.201)
+    (name "rust-wasmparser")
+    (version "0.57.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "wasmparser" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "19kslk9pv1bcyp85w63dn1adbp13kz7kjha80abnwz27bmbxvz9j"))))
+    (arguments `(#:skip-build? #t))))
+
+
 (define-public rust-watchexec-1
   (package
     (name "rust-watchexec")
-- 
2.41.0