[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/21: gnu: rav1e: Force building with rust edition 2018.
From: |
guix-commits |
Subject: |
01/21: gnu: rav1e: Force building with rust edition 2018. |
Date: |
Fri, 30 Sep 2022 10:13:41 -0400 (EDT) |
efraim pushed a commit to branch master
in repository guix.
commit 730f7c096df36f087a7cf9d289cd0f0bece1a5c2
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Fri Sep 30 12:43:44 2022 +0300
gnu: rav1e: Force building with rust edition 2018.
* gnu/packages/video.scm (rav1e)[arguments]: Add phase to force all
input crates to be built with rust edition 2018.
---
gnu/packages/video.scm | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/gnu/packages/video.scm b/gnu/packages/video.scm
index ca6148b078..6a14a85b74 100644
--- a/gnu/packages/video.scm
+++ b/gnu/packages/video.scm
@@ -5285,6 +5285,12 @@ result in several formats:
(substitute* "Cargo.toml"
;; Allow using more recent versions of
(("~3.1.2") "~3"))))
+ (add-after 'configure 'force-rust-edition-2018
+ (lambda* (#:key vendor-dir #:allow-other-keys)
+ ;; Force all the dependencies to not be higher than edition 2018.
+ (with-fluids ((%default-port-encoding #f))
+ (substitute* (find-files vendor-dir "Cargo.toml")
+ (("edition = \\\"2021\\\"") "edition = \"2018\"")))))
(replace 'build
(lambda* (#:key outputs #:allow-other-keys)
(let ((out (assoc-ref outputs "out")))
- branch master updated (9d9b53ed5f -> 71247a8e65), guix-commits, 2022/09/30
- 01/21: gnu: rav1e: Force building with rust edition 2018.,
guix-commits <=
- 03/21: gnu: Add rust-dirs-4., guix-commits, 2022/09/30
- 04/21: gnu: rust-dirs-3: Update to 3.0.2., guix-commits, 2022/09/30
- 07/21: gnu: rust-anyhow-1: Update to 1.0.65., guix-commits, 2022/09/30
- 09/21: gnu: rust-rustversion-1: Update to 1.0.9., guix-commits, 2022/09/30
- 11/21: gnu: Add rust-idna-0.3., guix-commits, 2022/09/30
- 02/21: gnu: rust-once-cell-1: Update to 1.15.0., guix-commits, 2022/09/30
- 14/21: gnu: rust-fastrand-1: Update to 1.8.0., guix-commits, 2022/09/30
- 15/21: gnu: rust-lexopt-0.2: Update to 0.2.1., guix-commits, 2022/09/30
- 17/21: gnu: rust-quote-1: Update to 1.0.21., guix-commits, 2022/09/30
- 19/21: gnu: rust-regex-syntax-0.6: Update to 0.6.27., guix-commits, 2022/09/30