Subject: [PATCH rust-team v2 088/117] gnu: Add rust-oneshot-uniffi-0.1.

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

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

Change-Id: I4396a88b687af2ef9e546f4d073cf4a1be0f8f36
---
 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 f45191e953..1abf4f7bd0 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -49561,6 +49561,35 @@ (define-public rust-once-cell-1
 contents.")
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-oneshot-uniffi-0.1
+  (package
+    (name "rust-oneshot-uniffi")
+    (version "0.1.6")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "oneshot-uniffi" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "175j04f7rpgy552h5m51ywq7184cqhcfs31dsxanjvwpg1f8sm3c"))
+       (modules '((guix build utils)))
+       (snippet '(substitute* (find-files ".")
+                   (("oneshot::")
+                    "oneshot_uniffi::")))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-development-inputs (("rust-async-std" ,rust-async-std-1)
+                                   ("rust-criterion" ,rust-criterion-0.3)
+                                   ("rust-tokio" ,rust-tokio-1))))
+    (home-page "https://github.com/faern/oneshot")
+    (synopsis
+     "Patched version of oneshot specifically for the UniFFI project.")
+    (description
+     "This package provides a patched version of oneshot specifically for
+the @code{UniFFI} project.  This removes the `loom` target and dependency
+which helps with @code{UniFFI's} downstream consumers.")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-onig-6
   (package
     (name "rust-onig")
-- 
2.41.0