Subject: [PATCH rust-team v2 098/117] gnu: Add rust-uniffi-0.25.

From: Herman Rimm <[email-masked]>
Date: Sun, 28 Apr 2024 20:56:04 +0200

* gnu/packages/crates-io.scm (rust-uniffi-0.25): Add variable.

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

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 79d2c4fe38..31d7619de5 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -87657,6 +87657,40 @@ (define-public rust-unidecode-0.3
      "This package provides pure ASCII transliterations of Unicode strings.")
     (license license:bsd-3)))
 
+(define-public rust-uniffi-0.25
+  (package
+    (name "rust-uniffi")
+    (version "0.25.3")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "uniffi" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "17wizn2iday1726gnngmn72437mfsi9nrmbzqi4gv4hhsdr52d11"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-anyhow" ,rust-anyhow-1)
+                       ("rust-camino" ,rust-camino-1)
+                       ("rust-clap" ,rust-clap-4)
+                       ("rust-uniffi-bindgen" ,rust-uniffi-bindgen-0.25)
+                       ("rust-uniffi-build" ,rust-uniffi-build-0.25)
+                       ("rust-uniffi-core" ,rust-uniffi-core-0.25)
+                       ("rust-uniffi-macros" ,rust-uniffi-macros-0.25))
+       #:cargo-development-inputs (("rust-trybuild" ,rust-trybuild-1))
+       #:phases
+       (modify-phases %standard-phases
+         ;; Actual output has two additional trait bounds.
+         (add-before 'check 'ignore-test
+           (lambda _
+             (setenv "TRYBUILD" "overwrite"))))))
+    (home-page "https://mozilla.github.io/uniffi-rs")
+    (synopsis "Multi-language bindings generator for Rust")
+    (description
+      "This package provides a multi-language bindings generator for
+Rust.")
+    (license license:mpl2.0)))
+
 (define-public rust-uniffi-bindgen-0.25
   (package
     (name "rust-uniffi-bindgen")
-- 
2.41.0