efraim pushed a commit to branch rust-team
in repository guix.
commit a85ca6669c5a0b9193a887a243b05df94ee92e3b
Author: Jordan Moore <[email protected]>
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 <[email protected]>
---
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")