[bug#75677,rust-team,v2,17/81] gnu: rust-iai-callgrind-0.14: New variable.

Message ID 20250308033446.2101481-18-aaron.covrig.us@ieee.org
State New
Headers
Series Assorted package updates for rust-team |

Commit Message

Aaron Covrig March 8, 2025, 3:33 a.m. UTC
  * gnu/packages/crates-io.scm (rust-iai-callgrind-0.14): New variable.
---
 gnu/packages/crates-io.scm | 41 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 41 insertions(+)
  

Patch

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 2f40913c0c..e7b7f040be 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -33238,6 +33238,47 @@  (define-public rust-iai-0.1
     (description "One-shot benchmarking library.")
     (license (list license:asl2.0 license:expat))))
 
+(define-public rust-iai-callgrind-0.14
+  (package
+    (name "rust-iai-callgrind")
+    (version "0.14.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "iai-callgrind" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0w6qzv7a91i63qd2zy8gyd6w7gjwil4y189abgqd4k47a605y9r2"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-bincode" ,rust-bincode-1)
+                       ("rust-cfg-if" ,rust-cfg-if-1)
+                       ("rust-cty" ,rust-cty-0.2)
+                       ("rust-derive-more-1" ,rust-derive-more-1)
+                       ("rust-iai-callgrind-macros" ,rust-iai-callgrind-macros-0.5)
+                       ("rust-iai-callgrind-runner" ,rust-iai-callgrind-runner-0.14))
+       #:cargo-development-inputs (("rust-bindgen" ,rust-bindgen-0.70)
+                                   ("rust-cc" ,rust-cc-1)
+                                   ("rust-regex" ,rust-regex-1)
+                                   ("rust-strum" ,rust-strum-0.26)
+                                   ("rust-version-compare" ,rust-version-compare-0.2)
+                                   ("rust-fs-extra" ,rust-fs-extra-1)
+                                   ("rust-rstest" ,rust-rstest-0.23)
+                                   ("rust-serde" ,rust-serde-1)
+                                   ("rust-serial-test" ,rust-serial-test-3)
+                                   ("rust-trybuild" ,rust-trybuild-1))))
+    (home-page "https://github.com/iai-callgrind/iai-callgrind")
+    (synopsis
+     "High-precision and consistent benchmarking framework/harness for Rust")
+    (description
+     "Iai-Callgrind is a benchmarking framework/harness which uses
+@url{https://valgrind.org/docs/manual/cl-manual.html, Valgrind's Callgrind} and
+other Valgrind tools like DHAT, Massif, ... to provide extremely accurate and
+consistent measurements of Rust code, making it perfectly suited to run in
+environments like a CI. Iai-Callgrind is integrated in
+@url{https://bencher.dev/learn/benchmarking/rust/iai/, Bencher}.")
+    (license (list license:asl2.0 license:expat))))
+
 (define-public rust-iai-callgrind-macros-0.5
   (package
     (name "rust-iai-callgrind-macros")