summaryrefslogtreecommitdiff
path: root/gnu/packages/rust.scm
diff options
context:
space:
mode:
authormoksh <mysticmoksh@riseup.net>2026-02-03 19:13:46 +0530
committerAndreas Enge <andreas@enge.fr>2026-02-21 10:14:48 +0100
commitf49a59f38fa94906c614dd13243656703b7a3694 (patch)
tree32eeb560d90b5c01dcf802210d561ecac30ba63f /gnu/packages/rust.scm
parent66ce71ec2511d3e8f0590cfb16cf01fd244004bc (diff)
gnu: Add rust-1.92.
* gnu/packages/rust.scm (rust-1.92): New variable. Change-Id: I161cdaa06113639200b0d1417aa82ed641218ae7 Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
Diffstat (limited to 'gnu/packages/rust.scm')
-rw-r--r--gnu/packages/rust.scm59
1 files changed, 59 insertions, 0 deletions
diff --git a/gnu/packages/rust.scm b/gnu/packages/rust.scm
index 01ba987a4c4..40baa214944 100644
--- a/gnu/packages/rust.scm
+++ b/gnu/packages/rust.scm
@@ -1708,6 +1708,65 @@ ge13ca993e8ccb9ba9847cc330696e02839f328f7/jemalloc"))
1708 (copy-recursively "stage2/lib" 1708 (copy-recursively "stage2/lib"
1709 (string-append out "/lib"))))))))))))) 1709 (string-append out "/lib")))))))))))))
1710 1710
1711(define-public rust-1.92
1712 (let ((base-rust
1713 (rust-bootstrapped-package
1714 rust-1.91 "1.92.0"
1715 "1f6305lkp4vwj132fq232mfxdcxg0d5vymc2fpf5y9vybjkjq3cy")))
1716 (package
1717 (inherit base-rust)
1718 (source
1719 (origin
1720 (inherit (package-source base-rust))
1721 (snippet
1722 '(begin
1723 (for-each delete-file-recursively
1724 '("src/llvm-project"
1725 "vendor/curl-sys-0.4.79+curl-8.12.0/curl"
1726 "vendor/curl-sys-0.4.83+curl-8.15.0/curl"
1727 "vendor/jemalloc-sys-0.5.3+5.3.0-patched/jemalloc"
1728 "vendor/jemalloc-sys-0.5.4+5.3.0-patched/jemalloc"
1729 "vendor/libffi-sys-4.0.0/libffi"
1730 "vendor/libz-sys-1.1.21/src/zlib"
1731 "vendor/libz-sys-1.1.22/src/zlib"
1732 "vendor/libmimalloc-sys-0.1.44/c_src/mimalloc"
1733 "vendor/openssl-src-111.28.2+1.1.1w/openssl"
1734 "vendor/openssl-src-300.5.0+3.5.0/openssl"
1735 "vendor/openssl-src-300.5.3+3.5.4/openssl"
1736 "vendor/tikv-jemalloc-sys-0.5.4+5.3.0-patched/jemalloc"
1737 "vendor/tikv-jemalloc-sys-0.6.0+5.3.0-1-\
1738ge13ca993e8ccb9ba9847cc330696e02839f328f7/jemalloc"))
1739 ;; Remove vendored dynamically linked libraries.
1740 ;; find . -not -type d -executable -exec file {} \+ | grep ELF
1741 ;; Also remove the bundled (mostly Windows) libraries.
1742 (for-each delete-file
1743 (find-files "vendor" "\\.(a|dll|exe|lib)$"))
1744 ;; Use the packaged nghttp2.
1745 (for-each
1746 (lambda (ver)
1747 (let ((vendored-dir
1748 (format #f "vendor/libnghttp2-sys-~a/nghttp2" ver))
1749 (build-rs
1750 (format #f "vendor/libnghttp2-sys-~a/build.rs" ver)))
1751 (delete-file-recursively vendored-dir)
1752 (delete-file build-rs)
1753 (call-with-output-file build-rs
1754 (lambda (port)
1755 (format port "fn main() {~@
1756 println!(\"cargo:rustc-link-lib=nghttp2\");~@
1757 }~%")))))
1758 '("0.1.11+1.64.0"))
1759 ;; Adjust vendored dependency to explicitly use rustix with libc
1760 ;; backend.
1761 (substitute* '("vendor/tempfile-3.14.0/Cargo.toml"
1762 "vendor/tempfile-3.16.0/Cargo.toml"
1763 "vendor/tempfile-3.19.1/Cargo.toml"
1764 "vendor/tempfile-3.20.0/Cargo.toml"
1765 "vendor/tempfile-3.21.0/Cargo.toml"
1766 "vendor/tempfile-3.23.0/Cargo.toml")
1767 (("features = \\[\"fs\"" all)
1768 (string-append all ", \"use-libc\""))))))))))
1769
1711(define (make-ignore-test-list strs) 1770(define (make-ignore-test-list strs)
1712 "Function to make creating a list to ignore tests a bit easier." 1771 "Function to make creating a list to ignore tests a bit easier."
1713 (map (lambda (str) 1772 (map (lambda (str)