Subject: [PATCHv2 rust-team 23/27] gnu: Add rust-graphene-rs-0.19.

From: Giacomo Leidi <[email-masked]>
Date: Wed, 6 Nov 2024 21:41:27 +0100

* gnu/packages/crates-gtk.scm (rust-graphene-rs-0.19): New variable;
(rust-graphene-rs-0.18): inherit from rust-graphene-rs-0.19.

Change-Id: Icb7bda2bc9268dee0b13d9e264b4390ddecdfbd5
---
 gnu/packages/crates-gtk.scm | 31 +++++++++++++++++++++++++------
 1 file changed, 25 insertions(+), 6 deletions(-)

diff --git a/gnu/packages/crates-gtk.scm b/gnu/packages/crates-gtk.scm
index a04f182287..ad51b6186a 100644
--- a/gnu/packages/crates-gtk.scm
+++ b/gnu/packages/crates-gtk.scm
@@ -2565,22 +2565,21 @@ (define-public rust-gobject-sys-0.9
        (("rust-shell-words" ,rust-shell-words-0.1)
         ("rust-tempfile" ,rust-tempfile-3))))))
 
-(define-public rust-graphene-rs-0.18
+(define-public rust-graphene-rs-0.19
   (package
     (name "rust-graphene-rs")
-    (version "0.18.1")
+    (version "0.19.8")
     (source
      (origin
        (method url-fetch)
        (uri (crate-uri "graphene-rs" version))
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
-        (base32 "00f4q1ra4haap5i7lazwhkdgnb49fs8adk2nm6ki6mjhl76jh8iv"))))
+        (base32 "1krblj6kbnixgkmz2b3494jmlm2xlv3qz5qm585frn943l1qdyzm"))))
     (build-system cargo-build-system)
     (arguments
-     `(#:tests? #f ; `Errors` doesn't implement `std::fmt::Display`
-       #:cargo-inputs (("rust-glib" ,rust-glib-0.18)
-                       ("rust-graphene-sys" ,rust-graphene-sys-0.18)
+     `(#:cargo-inputs (("rust-glib" ,rust-glib-0.19)
+                       ("rust-graphene-sys" ,rust-graphene-sys-0.19)
                        ("rust-libc" ,rust-libc-0.2))
        #:cargo-development-inputs
        (("rust-gir-format-check" ,rust-gir-format-check-0.1))))
@@ -2591,6 +2590,26 @@ (define-public rust-graphene-rs-0.18
     (description "Rust bindings for the Graphene library.")
     (license license:expat)))
 
+(define-public rust-graphene-rs-0.18
+  (package
+    (inherit rust-graphene-rs-0.19)
+    (name "rust-graphene-rs")
+    (version "0.18.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "graphene-rs" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "00f4q1ra4haap5i7lazwhkdgnb49fs8adk2nm6ki6mjhl76jh8iv"))))
+    (arguments
+     `(#:tests? #f ; `Errors` doesn't implement `std::fmt::Display`
+       #:cargo-inputs (("rust-glib" ,rust-glib-0.18)
+                       ("rust-graphene-sys" ,rust-graphene-sys-0.18)
+                       ("rust-libc" ,rust-libc-0.2))
+       #:cargo-development-inputs
+       (("rust-gir-format-check" ,rust-gir-format-check-0.1))))))
+
 (define-public rust-graphene-sys-0.19
   (package
     (name "rust-graphene-sys")
-- 
2.46.0