guix-commits
[Top][All Lists]
Advanced

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

101/134: gnu: Add rust-coverage-helper-0.1.


From: guix-commits
Subject: 101/134: gnu: Add rust-coverage-helper-0.1.
Date: Tue, 3 Dec 2024 10:04:37 -0500 (EST)

efraim pushed a commit to branch rust-team
in repository guix.

commit 603d691e900d802499c441dddc238686e71c0aa8
Author: Aaron Covrig <aaron.covrig.us@ieee.org>
AuthorDate: Mon Dec 2 22:00:20 2024 -0500

    gnu: Add rust-coverage-helper-0.1.
    
    * gnu/packages/crates-io.scm (rust-coverage-helper-0.1): New variable.
    
    Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
    Change-Id: Iee0af629bf6ba84546bd24b4a38b46273c36bc10
---
 gnu/packages/crates-io.scm | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 2936b26d9c..a3aab978ab 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -17397,6 +17397,29 @@ intrinsics.")
 @url{https://github.com/taiki-e/cargo-llvm-cov/issues/123, cargo-llvm-cov}.")
     (license (list license:asl2.0 license:expat))))
 
+(define-public rust-coverage-helper-0.1
+  (package
+    (inherit rust-coverage-helper-0.2)
+    (name "rust-coverage-helper")
+    (version "0.1.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "coverage-helper" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1jmm45536nnwgpbgabnngr21n7sjmga0bm4yzaflx925xfll3m0g"))
+       (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
+                     (("\\[lib\\]" all)
+                      (string-append "[lints.rust]" "\n"
+                       "unexpected_cfgs = { level = \"warn\", "
+                       "check-cfg = ['cfg(coverage_nightly)'] }"
+                       "\n" "\n" all)))))))))
+
 (define-public rust-count-instructions-0.1
   (package
     (name "rust-count-instructions")



reply via email to

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