guix-commits
[Top][All Lists]
Advanced

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

100/409: gnu: Add rust-coverage-helper-0.2.


From: guix-commits
Subject: 100/409: gnu: Add rust-coverage-helper-0.2.
Date: Thu, 19 Dec 2024 02:21:54 -0500 (EST)

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

commit 4e9988ad67b0440f4ff0ab259ae38f122e76635a
Author: Jordan Moore <lockbox@struct.foo>
AuthorDate: Mon Dec 2 22:00:19 2024 -0500

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

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 87e7ecb6e2..975fdfb8a9 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -17419,6 +17419,34 @@ intrinsics.")
         (base32 "1wv75ylrai556m388a40d50fxiyacmvm6qqz6va6qf1q04z3vylz"))))
     (arguments `())))
 
+(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")



reply via email to

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