Subject: [bug#70146] [PATCH 050/147] gnu: Add rust-wast-201.

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

* gnu/packages/crates-io.scm (rust-wast-201): New variable.

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

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index c4c3e9074f..7dd6a286a4 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -77986,6 +77986,33 @@ (define-public rust-wasmparser-0.57
     (arguments `(#:skip-build? #t))))

+(define-public rust-wast-201
+  (package
+    (name "rust-wast")
+    (version "201.0.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "wast" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1aig4bvd0n4vvwj1nvjrmmngyyi2q2lv3ljg6wmkxnnp6kpy3xhy"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:skip-build? #t
+       #:cargo-inputs (("rust-bumpalo" ,rust-bumpalo-3)
+                       ("rust-leb128" ,rust-leb128-0.2)
+                       ("rust-memchr" ,rust-memchr-2)
+                       ("rust-unicode-width" ,rust-unicode-width-0.1)
+                       ("rust-wasm-encoder" ,rust-wasm-encoder-0.201))))
+    (home-page
+     "https://github.com/bytecodealliance/wasm-tools/tree/main/crates/wast")
+    (synopsis "Parsers for the WebAssembly Text formats WAT and WAST")
+    (description "This package provides a library with customizable parsers
+for the WebAssembly Text formats WAT and WAST.")
+    ;; With LLVM exception.
+    (license license:asl2.0)))
+
 (define-public rust-watchexec-1
   (package
     (name "rust-watchexec")
-- 
2.41.0