Subject: [bug#70146] [PATCH 085/147] gnu: Add rust-wasmtime-cranelift-shared-18.

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

* gnu/packages/crates-io.scm (rust-wasmtime-cranelift-shared-18): New
variable.

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

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index c62d6fb6b4..d097776c5c 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -78651,6 +78651,35 @@ (define-public rust-wasmtime-component-macro-18
 generate WebAssembly component interface types from Rust types.")
     (license license:asl2.0))) ;; With LLVM exception.
 
+(define-public rust-wasmtime-cranelift-shared-18
+  (package
+    (name "rust-wasmtime-cranelift-shared")
+    (version "18.0.3")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "wasmtime-cranelift-shared" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0khk00q3b1hg4pwp5g06njqfgjyi3x3pdgifv29bjrx1vqglrhp8"))))
+    (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-cranelift-control" ,rust-cranelift-control-0.105)
+        ("rust-cranelift-native" ,rust-cranelift-native-0.105)
+        ("rust-gimli" ,rust-gimli-0.28)
+        ("rust-object" ,rust-object-0.32)
+        ("rust-target-lexicon" ,rust-target-lexicon-0.12)
+        ("rust-wasmtime-environ" ,rust-wasmtime-environ-18))))
+    (home-page "https://github.com/bytecodealliance/wasmtime")
+    (synopsis "Internal library integrating Wasmtime and Cranelift")
+    (description "This package provieds an internal library for
+Wasmtime to integrate the Cranelift code generation back-end.")
+    (license license:asl2.0))) ;; With LLVM exception.
+
 (define-public rust-wasmtime-environ-18
   (package
     (name "rust-wasmtime-environ")
-- 
2.41.0