Subject: [bug#70787] [PATCH 3/4] gnu: Add rust-libheif-rs-0.15.

From: Sergio Pastor Pérez <[email-masked]>
Date: Sun, 5 May 2024 16:44:07 +0200

* gnu/packages/crates-io.scm (rust-libheif-rs-0.15): New variable.

Change-Id: I14c4bfa1d3792f948687c199812da3be20ea6096
---
 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 5fff81c265..8a894ffeee 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -33761,6 +33761,28 @@ (define-public rust-libfuzzer-sys-0.3
        (("rust-arbitrary" ,rust-arbitrary-0.4)
         ("rust-cc" ,rust-cc-1))))))
 
+(define-public rust-libheif-rs-0.15
+  (package
+    (name "rust-libheif-rs")
+    (version "0.15.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "libheif-rs" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0mhhyak12ysnv9f6s0mp99i8z15z7qv5x9z28va1777w059qpxgd"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:skip-build? #t
+       #:cargo-inputs (("rust-enumn" ,rust-enumn-0.1)
+                       ("rust-libheif-sys" ,rust-libheif-sys-1))))
+    (home-page "https://github.com/cykooz/libheif-rs")
+    (synopsis "Wrapper around libheif-sys")
+    (description "This package provides a safe wrapper around the libheif-sys
+crate for parsing heif/heic files.")
+    (license license:expat)))
+
 (define-public rust-libheif-sys-1
   (package
     (name "rust-libheif-sys")
-- 
2.41.0