Subject: [bug#70146] [PATCH 078/147] gnu: Add rust-winch-codegen-0.16.

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

* gnu/packages/crates-io.scm (rust-winch-codegen-0.16): New variable.

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

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index e666c2446a..a4bb79b03f 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -79226,6 +79226,36 @@ (define-public rust-wild-2
 command-line, uniformly on all platforms")
     (license (list license:asl2.0 license:expat))))
 
+(define-public rust-winch-codegen-0.16
+  (package
+    (name "rust-winch-codegen")
+    (version "0.16.3")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "winch-codegen" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0wf3p4yfv5yl5fjn9rs29lqnzsq110gcxl3mshjrbmn8rbbd82qy"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:skip-build? #t
+       #:cargo-inputs
+       (("rust-anyhow" ,rust-anyhow-1)
+        ("rust-cranelift-codegen" ,rust-cranelift-codegen-0.105)
+        ("rust-gimli" ,rust-gimli-0.28)
+        ("rust-regalloc2" ,rust-regalloc2-0.9)
+        ("rust-smallvec" ,rust-smallvec-1)
+        ("rust-target-lexicon" ,rust-target-lexicon-0.12)
+        ("rust-wasmparser" ,rust-wasmparser-0.121)
+        ("rust-wasmtime-environ" ,rust-wasmtime-environ-18))))
+    (home-page "https://github.com/bytecodealliance/wasmtime")
+    (synopsis "Code generation library")
+    (description "This package provides Winch, a code generation library
+used by the Wasmtime WebAssmebly runtime.")
+    ;; With LLVM exception.
+    (license license:asl2.0)))
+
 (define-public rust-winnow-0.6
   (package
     (name "rust-winnow")
-- 
2.41.0