Subject: [bug#69803] [PATCH rust-team 24/37] gnu: Add rust-emath-0.26.

From: Herman Rimm <[email-masked]>
Date: Thu, 14 Mar 2024 22:16:25 +0100

* gnu/packages/crates-io.scm (rust-emath-0.26): Add variable.

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

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index b976e99085..c88e535fcc 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -20938,6 +20938,30 @@ (define-public rust-email-0.0.20
      "This crate provides an implementation of RFC 5322 email messages.")
     (license license:expat)))
 
+(define-public rust-emath-0.26
+  (package
+    (name "rust-emath")
+    (version "0.26.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "emath" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "02dgx8946bcy254rs8ijhx9k3n5xklfvagnzdiw8yi40rwg305k9"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs
+       (("rust-bytemuck" ,rust-bytemuck-1)
+        ("rust-document-features" ,rust-document-features-0.2)
+        ("rust-mint" ,rust-mint-0.5)
+        ("rust-serde" ,rust-serde-1))))
+    (home-page "https://github.com/emilk/egui/tree/master/crates/emath")
+    (synopsis "Minimal 2D math library for GUI work")
+    (description
+      "This package provides a minimal 2D math library for GUI work.")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-emojis-0.5
   (package
     (name "rust-emojis")
-- 
2.41.0