summaryrefslogtreecommitdiff
path: root/gnu/packages/rust.scm
AgeCommit message (Collapse)Author
2026-03-20gnu: Reference the inherited inputs values.Ludovic Courtès
This commit was made by running this command: sed -e's/modify-inputs (package-\([a-z-]*\)inputs [a-zA-Z0-9-]\+)/modify-inputs \1inputs/g' -i gnu/packages/*.scm … and then reverting individual hunks where the change would trigger unbound variable warnings or other issues (such as ‘native-inputs’ is bound in the body of the ‘inputs’ field, but it refers to the ‘native-inputs’ thunk defined just above). Change-Id: I6d94819f2809313fa1fbefc61897502ee7d66fab
2026-03-15gnu: Add rust-1.94.moksh
* gnu/packages/rust.scm (rust-1.94): New variable. Closes: guix/guix#6922 Change-Id: I7839ebae9d86f7855ea6dce7bdec2a023ba245a5 Signed-off-by: Danny Milosavljevic <dannym@friendly-machines.com>
2026-02-21gnu: rust: Update to 1.93.Efraim Flashner
* gnu/packages/rust.scm (rust): Update to 1.93. [arguments]: Remove phase enabling gdb to work. Adjust the phases skipping some tests. Adjust the 'build and 'install phases to not specify needing to build and install rust-analyzer-proc-macro-srv. Change-Id: Ib4c46b28445bc6cce7dadf6b882d77373c53f75c
2026-02-21gnu: Add rust-1.93.moksh
* gnu/packages/rust.scm (rust-1.93): New variable. Change-Id: I8f0acf168ead89f7701303e4a32af29856c79bf3 Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
2026-02-21gnu: Add rust-1.92.moksh
* gnu/packages/rust.scm (rust-1.92): New variable. Change-Id: I161cdaa06113639200b0d1417aa82ed641218ae7 Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
2026-02-21gnu: Add rust-1.91.moksh
* gnu/packages/rust.scm (rust-1.91): New variable. Change-Id: I5df33f594de40d714bfb8129abe777b76e8ea21a Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
2026-02-21gnu: rust: Don't keep a reference to previous rust version.Efraim Flashner
Fixes: guix/guix#5792. * gnu/packages/rust.scm (rust)[arguments]: Update disallowed-references. Add a phase to rewrite references from the input cargo to the output cargo. (make-rust-sysroot/implementation)[arguments]: Remove new phase. Change-Id: Ice6abdf18cba8eb042bfc37025ce0e7686623e46
2026-02-21gnu: make-rust-sysroot: Update for rust-1.90.Efraim Flashner
* gnu/packages/rust.scm (make-rust-sysroot/implementation)[arguments]: Adjust the mingw specific phases to update for the newer rust version. Change-Id: I406d0d417b016567639533a392de7832646d2763
2026-02-21gnu: rust: Add a search path for the rust sources.Efraim Flashner
* gnu/packages/rust.scm (rust)[native-search-paths]: Add entry for RUST_SRC_PATH. Change-Id: Id872340059574f1e7efd8ac30fca7165619584bc
2026-02-21gnu: rust: Don't skip extra tests on aarch64-linux.Efraim Flashner
* gnu/packages/rust.scm (rust)[arguments]: Remove the phase skipping some tests on aarch64-linux. Change-Id: I666237326f4208f9efbfe980c84384fa5f324fe3
2026-02-21gnu: rust: Enable more tests.Efraim Flashner
* gnu/packages/rust.scm (rust)[arguments]: Remove 'disable-tests-requiring-mercurial, 'disable-tests-requiring-crates.io phases. Adjust 'disable-tests-requiring-git, 'disable-tests-using-cargo-publish to skip fewer tests. [native-inputs]: Add git-minimal/pinned. Change-Id: Ide7510f2bc9b6a1d2e433b96673964723cc8d8be
2026-02-21gnu: rust: Fix native-search-paths specifications.Efraim Flashner
* gnu/packages/rust.scm (rust)[native-search-paths]: Correctly combine multiple entries. Change-Id: I24412bbc4856953ed3a172b84854fb069cbcbf73
2026-02-21gnu: rust: Update to 1.90.Maxim Cournoyer
* gnu/packages/rust.scm (rust): Update to 1.90. [source]: Delete field. [#:modules]: Add (srfi srfi-26). [#:phases] {disable-tests-using-cargo-publish}: Register new tests to disable. {patch-process-tests}: Adjust for file name change. {unpack-libunwind}: New phase. {patch-cargo-checksums}: Override phase. [inputs]: Delete field. [native-inputs]: Update clang-source to that of clang-runtime-21. Change-Id: I711e05ee889f4ba266d31e8c6bc9e73c112e99f3
2026-02-21gnu: Add rust-1.90.Maxim Cournoyer
* gnu/packages/rust.scm (rust-1.90): New variable. Change-Id: I0489f61d857af8e920498452665fcbfd1345d2de
2026-02-21gnu: Add rust-1.89.Maxim Cournoyer
* gnu/packages/rust.scm (rust-1.89): New variable. Change-Id: I049a50111519dbadae8ca2335d54cdb70b4f57be
2026-02-21gnu: rust: Delete extra files in install phase.Maxim Cournoyer
This fixes build failures in recent Rust 1.89 and later, and also reduces the output size of each Rust by about 10%. * gnu/packages/rust.scm (rust-bootstrap-1.54) [#:phases] {install}: Use with-directory-excursion. (rust-bootstrap-1.74): Do not install .rmeta files. (rust-1.55): [#:phases] {install}: Do not install .rmeta and rustlib/librustc_driver shared object files. (rust-1.75): Likewise. Change-Id: I718fc8e924b85867720fc2d343b41c8c4b7935b3
2026-01-27gnu: make-rust-sysroot: Remove cross-gcc work-around.Efraim Flashner
* gnu/packages/rust.scm (make-rust-sysroot/implementation) [native-inputs]: Remove gcc-14. Change-Id: Ia2c8dcff4b3fac5f7d61d7890e35f769e7bdc1bf Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
2025-11-09gnu: Use self-references to inputs for #:disallowed-references.Ludovic Courtès
This allows ‘package-input-rewriting’ to operate as expected on these packages. Failing that, rewritten packages would still carry references to non-rewritten packages in #:disallowed-references. * gnu/packages/admin.scm (wpa-supplicant-gui): Use ‘this-package-native-input’ for #:disallowed-references. * gnu/packages/fontutils.scm (freetype): Likewise. * gnu/packages/glib.scm (glib-minimal): Likewise. * gnu/packages/gnome.scm (cogl, gnome-shell): Likewise. * gnu/packages/groff.scm (groff-minimal): Likewise. * gnu/packages/gstreamer.scm (gstreamer): Likewise. * gnu/packages/gtk.scm (gtk+): Likewise. * gnu/packages/inkscape.scm (inkscape/pinned): Likewise. * gnu/packages/java.scm (icedtea-8, openjdk9, openjdk10) (openjdk11): Likewise. * gnu/packages/linux.scm (f2fs-tools/static): Likewise. * gnu/packages/man.scm (man-db): Likewise. * gnu/packages/openldap.scm (389-ds-base): Likewise. * gnu/packages/qt.scm (qtbase-5): Likewise. * gnu/packages/rrdtool.scm (rrdtool): Likewise. * gnu/packages/rust.scm (rust-bootstrapped-package): Likewise. * gnu/packages/statistics.scm (r-with-tests): Likewise. (r-minimal): Likewise. * gnu/packages/texinfo.scm (info-reader): Likewise. * gnu/packages/tls.scm (gnutls): Likewise. (openssl-1.1): Likewise. * gnu/packages/version-control.scm (git-minimal): Likewise. (git): Likewise. (gource): Likewise. * gnu/packages/web.scm (mod-wsgi): Likewise. * gnu/packages/xfce.scm (xfdesktop): Likewise. * gnu/packages/perl.scm (perl-libtime-parsedate): Update comment. * gnu/packages/video.scm (v4l-utils-minimal): Add FIXME comment. Change-Id: I118ecd5894c24c53ec52c9208b0025ccfa3dd68a Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2025-09-18Reapply "Update Maxim's email address."Maxim Cournoyer
This reverts commit a7db92d9b389cbe565395523882c34c6eff2c21a, this time with the more careful command, to avoid a world rebuild: grep -rl --exclude-dir=build --exclude-dir=patches --exclude=ld-wrapper.in \ --exclude=sitecustomize.py --exclude=guix-emacs.el maxim.cournoyer@gmail.com | xargs sed -i 's/maxim.cournoyer@gmail.com/maxim@guixotic.coop/g' Change-Id: I0871f5cf9ace79e34e78e24154d0da6ea95a3a91
2025-09-18Revert "Update Maxim's email address."Maxim Cournoyer
This reverts commit d0d87a744d724b7e7d5ac013c586039652087bb3. Oops! This caused a world rebuild. Change-Id: I25fff644b2b61d0ee93d69b457b04c72b5b74d15
2025-09-18Update Maxim's email address.Maxim Cournoyer
The change was automated via: git grep -l maxim.cournoyer@gmail.com | xargs sed -i 's/maxim.cournoyer@gmail.com/maxim@guixotic.coop/g' * .mailmap: New entry. Change-Id: Iaa88b1e51c94159c49138fb43910badb990eb169
2025-08-21gnu: Add rust-1.88.Efraim Flashner
* gnu/packages/rust.scm (rust-1.88): New variable. Change-Id: I158e90b421ae37e463c25eff221a903fd16a0286 Signed-off-by: Hilton Chain <hako@ultrarare.space>
2025-08-21gnu: Add rust-1.87.Efraim Flashner
* gnu/packages/rust.scm (rust-1.87): New variable. Change-Id: Ic7a6d98595f222109c720d3dd81f6180e8746add Signed-off-by: Hilton Chain <hako@ultrarare.space>
2025-08-21gnu: Add rust-1.86.Efraim Flashner
* gnu/packages/rust.scm (rust-1.86): New variable. Change-Id: I01f4d4e0953199b6f26d639274b69c0c4c4164dd Signed-off-by: Hilton Chain <hako@ultrarare.space>
2025-08-21gnu: rust-bootstrapped-package: Use modify-inputs.Morgan Smith
* gnu/packages/rust.scm (rust-bootstrapped-package)[native-inputs]: Use modify-inputs. [arguments]: Set the #:disallowed-references argument. Change-Id: Idf7390eeb3035bc509a21903e38aa0071603b484 Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
2025-08-21gnu: rust-1.75: Use rust-bootstrap-1.74 on some platforms.Efraim Flashner
* gnu/packges/rust.scm (rust-1.75)[arguments]: When building with rust-bootstrap-1.74 add the add-cc-shim-to-path phase. [native-inputs]: Build with rust-bootstrap-1.74 on platforms which have support. [inputs]: Replace llvm-15 with llvm-17. (rust-1.76)[arguments]: Remove added add-cc-shim-to-path phase. [inputs]: Don't replace llvm. Change-Id: I3bbf5c6dd64617bdd100cc274fe754ffc1325223
2025-08-21gnu: Add rust-bootstrap-1.74.Morgan Smith
* gnu/packages/rust.scm(rust-bootstrap-1.74): New variable. (rust-bootstrap): Rename to rust-bootstrap-1.54. (rust-1.55)[native-inputs]: Adjust accordingly. * gnu/packages/emacs-xyz.scm (emacs-flycheck-rust)[native-inputs]: Adjust accordingly. Change-Id: Id88e200015ed6ab246407e37eeb4159cb4df195d Signed-off-by: Efraim Flashner <efraim@flashner.co.il> Signed-off-by: Hilton Chain <hako@ultrarare.space>
2025-08-21gnu: mrustc: Update to 0.11.2-1.06b87d1.Efraim Flashner
* gnu/packages/rust.scm (%mrustc-source): Update to 0.11.2-1.06b87d1. [source]: Adjust snippet to allow for more compression types. Co-authored-by: Morgan Smith <Morgan.J.Smith@outlook.com> Change-Id: Icaa193451c72dfb41b1c87e9e40cfbcccc8aa152
2025-08-21gnu: rust: Install stdlib manifest with original checksums.Brennan Vincent
* gnu/packages/rust.scm (rust)[arguments]: Install stdlib manifest with the original checksums. Change-Id: I1100ffe4ff67c8e2026e802fc3902ec218e2efee Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
2025-08-21gnu: rust: Update to 1.85.Brennan Vincent
* gnu/packages/rust.scm (rust-1.85): New variable. * gnu/packages/rust.scm (rust): Update to 1.85. [source]: Update sources to unbundle. Change-Id: Ifa7b223e478f05830d343f169c5e8b29501ade5c Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
2025-08-21gnu: rust: Don't wrap rust-analyzer with proc-macro-srv.Efraim Flashner
This is apparently not the correct action. * gnu/packages/rust.scm (rust)[arguments]: Adjust the custom 'wrap-rust-analyzer phase to not wrap rust-analyzer with rust-analyzer-proc-macro-srv. Change-Id: I71e284f209a87b4c23c0657b564ab10de05e0937
2025-08-21gnu: rust: Adjust skipped tests on riscv64-linux.Efraim Flashner
* gnu/packages/rust.scm (rust)[arguments]: Adjust the custom 'disable-tests-broken-on-riscv64 phase for tests broken on riscv64-linux. Change-Id: I6ffd451c75b45351a94cc07c5f4cf2db665aeef7
2025-08-21gnu: rust: Adjust skipped tests on aarch64-linux.Efraim Flashner
* gnu/packages/rust.scm (rust)[arguments]: Adjust the custom 'disable-tests-broken-on-aarch64 phase for tests broken on aarch64-linux. Change-Id: I2ecad6134612e9558adea148b879b9a00aac12c6
2025-08-21gnu: rust: Update to 1.84.Efraim Flashner
* gnu/packages/rust.scm (rust): Update to 1.84. [source]: Adjust snippet for directories to delete. [arguments]: Only add 'disable-tests-broken-on-aarch64 phase for aarch64. Adjust other test modifying phases for changes in the test suite. [native-inputs]: Replace the clang-runtime sources from 17 to 19. [properties]: Update the llvm cpu architecture. Change-Id: I17a357534d168d87f11f497b25c297003bb76f2a
2025-08-21gnu: rust: Remove install script from all outputs.Efraim Flashner
* gnu/packages/rust.scm (rust)[arguments]: Adjust the custom 'remove-uninstall-script phase to not install the uninstall script in any output. Change-Id: I8be03d0badabb587668a7b44758702f3e17d2654
2025-08-21gnu: Add rust-1.84.Efraim Flashner
* gnu/packages/rust.scm (rust-1.84): New variable. Change-Id: Id803abe219dac829b1eb4bc4af9f4e43724980c7
2025-08-21gnu: Add rust-1.83.Efraim Flashner
* gnu/packages/rust.scm (rust-1.83): New variable. Change-Id: I662217b48ffc55bc3be9471c4ae886a349c95fbf
2025-08-21gnu: rust-analyze: Link to rust-analyze-proc-macro-srv.Efraim Flashner
* gnu/packages/rust.scm (rust)[arguments]: Build proc-macro-srv-cli during the 'build phase. Adjust the 'install phase to manually install rust-analyzer-proc-macro-srv. Adjust the 'wrap-rust-analyzer phase to give the path to rust-analyzer-proc-macro-srv. Change-Id: I6b8dcdca20183551a576fe2f0f5dd50dbe99d08c
2025-01-06gnu: rust: Add CARGO_HTTP_CAINFO to native-search-path.Jean-Baptiste Note
* gnu/packages/rust.scm (rust)[native-search-paths]: Add CARGO_HTTP_CAINFO native-search-path so that Cargo honors custom certificates (a la GIT_SSL_CAINFO). Signed-off-by: Efraim Flashner <efraim@flashner.co.il> Change-Id: I3eca13d8e12cbfd680cd33e22ff6d1aea7a7e379
2025-01-06gnu: mrustc: Update to 0.11.0-1.5e01a76.Efraim Flashner
* gnu/packages/rust.scm (%mrustc-commit): Update to newest commit. (%mrustc-source): Update to 0.11.0-1.5e01a76. Add a patch. Adjust the snippet to not use vendored openssl. (rust-bootstrap)[source]: Remove patch, remove patch-flags. Add to the snippet a substitution for compatibility with llvm-13. [inputs]: Remove input labels. Remove conditional use of clang. [arguments]: Allow parallel building on all architectures. Update the make-flags. Replace the 'unpack phase to unpack the mrustc sources. Delete the custom 'set-mrustc-sources and 'patch-cargo-checksum phases. Adjust the custom 'patch-makefiles phase. Adjust the 'configure and 'build phases to no longer use clang on some architectures. * gnu/packages/patches/mrustc-patches.patch: New file. * gnu/packages/patches/rustc-1.54.0-src.patch: Remove file. * gnu/local.mk (dist_patch_DATA): Update it. Change-Id: I7e444abe4b386b1bb77f05a278ddef45152ddb3c
2025-01-06gnu: rust-1.55: Use minimal variant of python-wrapper.Maxim Cournoyer
This should help reduce the number of times rebuilding the rust bootstrap chain from scratch is needed when updating packages. * gnu/packages/rust.scm (rust-1.55) [native-inputs]: Replace python-wrapper with python-minimal-wrapper. Change-Id: I92c88192c75353b22f374d5c301776d2bcc6b1db Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
2025-01-06gnu: rust-bootstrap: Don't use parallel-build.Efraim Flashner
* gnu/packages/rust.scm (rust-bootstrap)[arguments]: Change parallel-build? to be false on all architectures. Change-Id: I36aa984f9d47e01d35270423dbf44d57182854f0
2024-12-05gnu: make-rust-sysroot: Adjust for newer cross-gcc.Efraim Flashner
* gnu/packages/rust.scm (make-rust-sysroot/implementation) [native-inputs]: Add gcc-14. Change-Id: If9bc74bfe2e236accc39dc09e03b28dee62e332d
2024-12-05gnu: make-rust-sysroot: Simplify native-inputs.Efraim Flashner
* gnu/packages/rust.scm (make-rust-sysroot/implementation) [native-inputs]: Combine the different modify-input branches into one. Change-Id: Ia7df5d1566099f9934a76b2660f46a55547c88b9
2024-12-05gnu: make-rust-sysroot: Accept other mingw targets.Efraim Flashner
* gnu/packages/rust.scm (make-rust-sysroot/implementation)[arguments]: Adjust the custom 'patch-for-mingw phase to generate the name of the mingw input package based on the target architecture. [inputs, native-inputs]: Use make-mingw-w64 to choose the mingw package for the target. Change-Id: I48638095a504675753e65fdb6f0286c31cebde66
2024-11-28gnu: rust: Update to 1.82.Brennan Vincent
gnu/packages/rust.scm (rust-1.81)[source]: Add patch to fix bootstrap of 1.82 on riscv64. gnu/packages/rust.scm (rust-1.82): New variable. gnu/packages/rust.scm (rust): Update to 1.82. [source]: Update snippet for newer version. [arguments]: Disable more tests in the 'disable-tests-requiring-crates.io phase. Change-Id: If6ff59011edca7a230946a3ba77b51f26cd47789 Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
2024-11-28gnu: make-rust-sysroot: Adjust for newer rust version.Efraim Flashner
* gnu/packages/rust.scm (make-rust-sysroot)[arguments]: Adjust 'unbundle-xz phase for changes in vendored libraries. Delete inherited 'enable-profiling phase. Change-Id: I27a5fc2e2a3f9ad3a32b71d1d28d984fb5bcc37e
2024-11-28gnu: rust: Build with clang sources for version 17.Efraim Flashner
* gnu/packages/rust.scm (rust)[native-inputs]: Update clang-source to 17. Change-Id: I2b63b0c311eca9d66ea91deead26cf815018e977
2024-11-28gnu: rust: Update to 1.81.Brennan Vincent
gnu/packages/rust.scm (rust-1.81): New variable. gnu/packages/rust.scm (rust): Update to 1.81. Change-Id: Idb1958364225bebb9aa415419083b6ab97d7c4c7 Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
2024-11-28gnu: rust: Update to 1.80.Brennan Vincent
gnu/packages/rust.scm (rust): Update to 1.80. Change-Id: Ife65cb52362a30df8aabd4255a3fdc3c3d60e7bb Signed-off-by: Efraim Flashner <efraim@flashner.co.il>