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

Message ID 20250319011932.1899508-13-aaron.covrig.us@ieee.org
State New
Headers
Series Assorted rust-* package upgrades |

Commit Message

Aaron Covrig March 19, 2025, 1:18 a.m. UTC
  * gnu/packages/crates-io.scm (rust-malloc-size-of-0.1): New variable.

Signed-off-by: Aaron Covrig <aaron.covrig.us@ieee.org>
---
 gnu/packages/crates-io.scm | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)
  

Patch

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")