[bug#75677,rust-team,v2,16/81] gnu: rust-iai-callgrind-macros-0.5: New variable.

Message ID 20250308033446.2101481-17-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-macros-0.5): New variable.
---
 gnu/packages/crates-io.scm | 35 +++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)
  

Patch

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 2003dc6911..2f40913c0c 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -33238,6 +33238,41 @@  (define-public rust-iai-0.1
     (description "One-shot benchmarking library.")
     (license (list license:asl2.0 license:expat))))
 
+(define-public rust-iai-callgrind-macros-0.5
+  (package
+    (name "rust-iai-callgrind-macros")
+    (version "0.5.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "iai-callgrind-macros" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "18g5s3mm8j8nq5s1rjs88dpb8zmz65lgsbz6i2wrimrbqmyngrp8"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-test-flags '("--"
+                            ;; Missing files
+                            "--skip=src/lib.rs - library_benchmark (line 246)")
+       #:cargo-inputs (("rust-derive-more-1" ,rust-derive-more-1)
+                       ("rust-proc-macro-error2" ,rust-proc-macro-error2-2)
+                       ("rust-proc-macro2" ,rust-proc-macro2-1)
+                       ("rust-quote" ,rust-quote-1)
+                       ("rust-serde" ,rust-serde-1)
+                       ("rust-serde-json" ,rust-serde-json-1)
+                       ("rust-syn" ,rust-syn-2))
+       #:cargo-development-inputs (("rust-pretty-assertions" ,rust-pretty-assertions-1)
+                                   ("rust-rstest" ,rust-rstest-0.23))))
+    (home-page "https://github.com/iai-callgrind/iai-callgrind")
+    (synopsis "Proc macros for the iai-callgrind benchmarking framework")
+    (description
+     "Iai-Callgrind is a benchmarking harness that uses Callgrind to perform
+extremely precise measurements of Rust code.
+
+This package provides the proc macros needed by the
+@url{https://crates.io/crates/iai-callgrind, Iai-callgrind library}.")
+    (license (list license:asl2.0 license:expat))))
+
 (define-public rust-iai-callgrind-runner-0.14
   (package
     (name "rust-iai-callgrind-runner")