Subject: [PATCH rust-team v3 03/73] gnu: rust-any-all-workaround: enable building

From: Aaron Covrig <[email-masked]>
Date: Mon, 2 Dec 2024 21:59:43 -0500

* gnu/packages/crates-io.scm (rust-any-all-workaround-0.1): Enable building
---
 gnu/packages/crates-io.scm | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 769505a87c..cf43722a35 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -2312,8 +2312,12 @@ (define-public rust-any-all-workaround-0.1
         (base32 "11ifmzawvvi6d4r1lk0dkdnbswf574npgkika4535k7j6l3s9zl8"))))
     (build-system cargo-build-system)
     (arguments
-     `(#:skip-build? #t ; `#![feature]` may not be used on the stable release channel
-       #:cargo-inputs (("rust-cfg-if" ,rust-cfg-if-1))))
+     `(#:cargo-inputs (("rust-cfg-if" ,rust-cfg-if-1))
+       #:phases (modify-phases %standard-phases
+                  ;; `#![feature]` may not be used on the stable release channel
+                  ;; Enable using nightly/dev features
+                  (add-after 'unpack 'enable-unstable-features
+                    (lambda _ (setenv "RUSTC_BOOTSTRAP" "1") #t)))))
     (home-page "https://docs.rs/any_all_workaround/")
     (synopsis "Workaround for bad LLVM codegen for boolean reductions on 32-bit ARM")
     (description
-- 
2.47.0