Subject: [PATCH 048/147] gnu: Add rust-wasm-encoder-0.201.

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

* gnu/packages/crates-io.scm (rust-wasm-encoder-0.201): New variable.

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

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 0a69c85078..4e1cea7679 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -77818,6 +77818,30 @@ (define-public rust-wasm-bindgen-test-macro-0.2
        (("rust-proc-macro2" ,rust-proc-macro2-0.4)
         ("rust-quote" ,rust-quote-0.6))))))
 
+(define-public rust-wasm-encoder-0.201
+  (package
+    (name "rust-wasm-encoder")
+    (version "0.201.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "wasm-encoder" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "06lgfkb0r1dw0hc1mqgnrkg935h1qb668gq1kf0hc07n3mrx5ixr"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:skip-build? #t
+       #:cargo-inputs (("rust-leb128" ,rust-leb128-0.2)
+                       ("rust-wasmparser" ,rust-wasmparser-0.201))))
+    (home-page
+     "https://github.com/bytecodealliance/wasm-tools/tree/main/crates/wasm-encoder")
+    (synopsis "Encode WebAssembly binary files")
+    (description "This package provides a low-level interface to encode
+WebAssembly binaries.")
+    ;; With LLVM exception.
+    (license license:asl2.0)))
+
 (define-public rust-wasm-streams-0.3
   (package
     (name "rust-wasm-streams")
-- 
2.41.0