Subject: [bug#69363] [PATCH 02/87] gnu: Add rust-easy-cast-0.5.

From: VÖRÖSKŐI András <[email-masked]>
Date: Sat, 24 Feb 2024 21:39:00 +0100

* gnu/packages/crates-io.scm (rust-easy-cast-0.5): New variable.

Change-Id: I8cb32c63440257424b53b603d0ce84a3002a5e3a
---
 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 0082cd0977..fa36024122 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -20353,6 +20353,27 @@ (define-public rust-dwrote-0.11
      "This package provides lightweight binding to DirectWrite.")
     (license license:mpl2.0)))
 
+(define-public rust-easy-cast-0.5
+  (package
+    (name "rust-easy-cast")
+    (version "0.5.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "easy-cast" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1mizff08p0rlmgvi81rqdblji372rhr17xlvzmqylfsz2iw6g4qh"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-test-flags '("--") ; fails in --release mode
+       #:cargo-inputs (("rust-libm" ,rust-libm-0.2))))
+    (home-page "https://github.com/kas-gui/easy-cast")
+    (synopsis "Type conversions which are expected to succeed")
+    (description "This library is written to make numeric type conversions
+easy.")
+    (license license:asl2.0)))
+
 (define-public rust-easy-cast-0.4
   (package
     (name "rust-easy-cast")
-- 
2.41.0