Subject: [bug#74743] [PATCH rust-team v2 12/68] gnu: rust-malloc-size-of-0.1: New variable.

From: Aaron Covrig <[email-masked]>
Date: Tue, 18 Mar 2025 21:18:30 -0400

* gnu/packages/crates-io.scm (rust-malloc-size-of-0.1): New variable.

Signed-off-by: Aaron Covrig <[email-masked]>
---
 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 5860af3a59..0e60e6aade 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -41663,6 +41663,27 @@ (define-public rust-malloc-buf-0.0
     (arguments
      `(#:cargo-inputs (("rust-libc" ,rust-libc-0.2))))))
 
+(define-public rust-malloc-size-of-0.1
+  (package
+    (name "rust-malloc-size-of")
+    (version "0.1.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "malloc_size_of" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "04xah660p9s5sd3jg7d9p3b7q9i53d6ax4l1rwl008wgigg1kmz5"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-void" ,rust-void-1))))
+    (home-page "https://github.com/servo/malloc_size_of")
+    (synopsis "Allocator-agnostic crate for measuring the heap size of a value")
+    (description
+     "Allocator-agnostic crate for measuring the runtime size of a value
+including the size of any heap allocations that are owned by that value.")
+    (license (list license:asl2.0 license:expat))))
+
 (define-public rust-manifest-dir-macros-0.1
   (package
     (name "rust-manifest-dir-macros")
-- 
2.48.1