Subject: [bug#69257] [PATCH rust-team v2 114/117] WIP: gnu: Add rust-qrcode-0.12.

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

* gnu/packages/crates-io.scm (rust-qrcode-0.12): Add variable.

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

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index d8513286fb..b609ce4985 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -60469,6 +60469,27 @@ (define-public rust-qrcode-0.13
     (description "This package provides a QR code encoder in Rust.")
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-qrcode-0.12
+  (package
+    (name "rust-qrcode")
+    (version "0.12.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "qrcode" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0zzmrwb44r17zn0hkpin0yldwxjdwya2nkvv23jwcc1nbx2z3lhn"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-checked-int-cast" ,rust-checked-int-cast-1)
+                       ("rust-image" ,rust-image-0.23))
+       #:cargo-development-inputs (("rust-image" ,rust-image-0.23))))
+    (home-page "https://github.com/kennytm/qrcode-rust")
+    (synopsis "QR code encoder in Rust")
+    (description "This package provides a QR code encoder in Rust.")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-quad-rand-0.2
   (package
     (name "rust-quad-rand")
-- 
2.41.0