Subject: [bug#76513] [PATCH rust-team v3 71/78] gnu: Add rust-wasmi-core-0.40.

From: Andrew Wong <[email-masked]>
Date: Sun, 2 Mar 2025 16:30:42 -0500

* gnu/packages/crates-io.scm (rust-wasmi-core-0.40): New variable.

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

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 0bc1b54cf1..f4efeae047 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -93919,6 +93919,28 @@ (define-public rust-wasm-sync-0.1
 and native running processes.")
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-wasmi-core-0.40
+  (package
+    (name "rust-wasmi-core")
+    (version "0.40.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "wasmi_core" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0cvw16b7l3his0p6m8bv0nywawyxpv91q8gzqz132bf35i45331s"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:skip-build? #t
+       #:cargo-inputs (("rust-downcast-rs" ,rust-downcast-rs-1)
+                       ("rust-libm" ,rust-libm-0.2))))
+    (home-page "https://github.com/wasmi-labs/wasmi")
+    (synopsis "Core primitives for the wasmi WebAssembly interpreter")
+    (description
+     "This package provides Core primitives for the wasmi @code{WebAssembly} interpreter.")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-wasmparser-0.218
   (package
     (name "rust-wasmparser")
-- 
2.48.1