guix-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug#75212] [PATCH rust-team 2/7] gnu: Add rust-alloc-counter-0.0.4.


From: Herman Rimm
Subject: [bug#75212] [PATCH rust-team 2/7] gnu: Add rust-alloc-counter-0.0.4.
Date: Mon, 30 Dec 2024 20:47:47 +0100

* gnu/packages/crates-io.scm (rust-alloc-counter-0.0.4): Add variable.

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

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 112276fe191..6ee05ca09a6 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -1258,6 +1258,33 @@ (define-public rust-aligned-vec-0.5
     (description "This package provides an aligned vector and box containers.")
     (license license:expat)))
 
+(define-public rust-alloc-counter-0.0.4
+  (package
+    (name "rust-alloc-counter")
+    (version "0.0.4")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "alloc_counter" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1agxzprqi37bcy9hh3clbsl3n0awbb34vrlv4rp5afib8w53m31s"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-test-flags '("--" "--skip=count_3" "--skip=count_alloc")
+       #:cargo-inputs
+       (("rust-alloc-counter-macro" ,rust-alloc-counter-macro-0.0.2)
+        ("rust-pin-utils" ,rust-pin-utils-0.1))
+       #:cargo-development-inputs
+       (("rust-futures-executor" ,rust-futures-executor-0.3))))
+    (home-page "https://gitlab.com/sio4/code/alloc-counter";)
+    (synopsis "Count allocations, reallocations, deallocations")
+    (description
+     "This package provides a counter for allocations, reallocations,
+deallocations.  It can also allow, deny, or forbid allocations on an
+expression or function basis.")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-alloc-counter-macro-0.0.2
   (package
     (name "rust-alloc-counter-macro")
-- 
2.45.2






reply via email to

[Prev in Thread] Current Thread [Next in Thread]