Subject: [bug#70146] [PATCH 116/147] gnu: Add rust-witx-0.9.

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

* gnu/packages/crates-io.scm (rust-witx-0.9): New variable.

Change-Id: Id3658fc79f78883720cd46190877160386b11faa
---
 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 d8b6023e10..dbbc402bb5 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -80222,6 +80222,30 @@ (define-public rust-wit-parser-0.13
 @acronym{WIT, WebAssembly Interface Type}.")
     (license license:asl2.0))) ;; With LLVM exception.
 
+(define-public rust-witx-0.9
+  (package
+    (name "rust-witx")
+    (version "0.9.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "witx" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0jzgmayh2jjbv70jzfka38g4bk4g1fj9d0m70qkxpkdbbixg4rp3"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:skip-build? #t
+       #:cargo-inputs (("rust-anyhow" ,rust-anyhow-1)
+                       ("rust-log" ,rust-log-0.4)
+                       ("rust-thiserror" ,rust-thiserror-1)
+                       ("rust-wast" ,rust-wast-35))))
+    (home-page "https://github.com/WebAssembly/WASI")
+    (synopsis "Parse and validate WITX files")
+    (description "This package provides a library to parse and validate
+WITX files.")
+    (license license:asl2.0)))
+
 (define-public rust-wycheproof-0.5
   (package
     (name "rust-wycheproof")
-- 
2.41.0