Subject: [PATCH 43/44] gnu: Add rust-deepsize-0.2.

From: Murilo <[email-masked]>
Date: Thu, 30 May 2024 12:18:10 -0300

* gnu/packages/crates-io.scm (rust-deepsize-0.2): New variable.

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

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 4281aac586..f3f8fee894 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -20165,6 +20165,36 @@ (define-public rust-decimal-2
      "Decimal floating point arithmetic for Rust.")
     (license license:asl2.0)))
 
+(define-public rust-deepsize-0.2
+  (package
+    (name "rust-deepsize")
+    (version "0.2.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "deepsize" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0v5rn98i6j4jfpcm93mg8by3ddwhanvjiyd3pszzfsvgqdz9inqw"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-arrayvec" ,rust-arrayvec-0.5)
+                       ("rust-chrono" ,rust-chrono-0.4)
+                       ("rust-deepsize-derive" ,rust-deepsize-derive-0.1)
+                       ("rust-hashbrown" ,rust-hashbrown-0.9)
+                       ("rust-indexmap" ,rust-indexmap-1)
+                       ("rust-slab" ,rust-slab-0.4)
+                       ("rust-slotmap" ,rust-slotmap-0.4)
+                       ("rust-smallvec" ,rust-smallvec-1))
+       #:cargo-development-inputs (("rust-deepsize-derive" ,rust-deepsize-derive-0.1))))
+    (home-page "https://github.com/Aeledfyr/deepsize/")
+    (synopsis
+     "Crate for measuring the total size of object on the stack and heap")
+    (description
+     "This package provides a crate for measuring the total size of object on the
+stack and heap")
+    (license license:expat)))
+
 (define-public rust-defer-0.1
   (package
     (name "rust-defer")
-- 
2.41.0