guix-patches
[Top][All Lists]
Advanced

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

[bug#74551] [PATCH rust-team v3 39/73] gnu: Add rust-coverage-helper-0.2


From: Aaron Covrig
Subject: [bug#74551] [PATCH rust-team v3 39/73] gnu: Add rust-coverage-helper-0.2.
Date: Mon, 2 Dec 2024 22:00:19 -0500

From: Jordan Moore <lockbox@struct.foo>

* gnu/packages/crates-io.scm (rust-coverage-helper-0.2): New variable.
---
 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 da84cd2fbf..61dba0631e 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -17355,6 +17355,33 @@ (define-public rust-cov-mark-2
     (description "This package provides a Manual coverage marks.")
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-coverage-helper-0.2
+  (package
+    (name "rust-coverage-helper")
+    (version "0.2.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "coverage-helper" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0knim97n8v0yhn82rm4dvn0gds4fbwzx6f2yjdsiwgdv2wbmax41"))
+       (modules '((guix build utils)))
+       (snippet '(begin
+                   (substitute* "Cargo.toml"
+                     ;; cfg_attr(coverage_nightly) breaks some cargo versions
+                     ;; See issue: 
https://github.com/taiki-e/cargo-llvm-cov/issues/370
+                     (("\\[lints.rust\\]" all)
+                      (string-append all "\n"
+                       "unexpected_cfgs = { level = \"warn\", check-cfg = 
['cfg(coverage_nightly)'] }")))))))
+    (build-system cargo-build-system)
+    (home-page "https://github.com/taiki-e/coverage-helper";)
+    (synopsis "Helper for cargo-llvm-cov")
+    (description
+     "Helper for
+@url{https://github.com/taiki-e/cargo-llvm-cov/issues/123, cargo-llvm-cov}.")
+    (license (list license:asl2.0 license:expat))))
+
 (define-public rust-count-instructions-0.1
   (package
     (name "rust-count-instructions")
-- 
2.47.0






reply via email to

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