summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2026-04-29 18:01:07 +0300
committerEfraim Flashner <efraim@flashner.co.il>2026-06-04 12:58:08 +0300
commitb94376f4884e0502eb0ca56f4bc8dff5fcb9679c (patch)
tree2d06c87a6ac3a3d74e63a401314e7efa12e9cc5b
parent116d4df88902961b4e55a1c3a6df8a5de7416d56 (diff)
gnu: rust: Update to 1.95.
* gnu/packages/rust.scm (rust-1.95): New variable. (rust): Update to 1.95. Change-Id: Id79077ea01bfcc08881c3ff545f3c7bda15c2702
-rw-r--r--gnu/packages/rust.scm63
1 files changed, 62 insertions, 1 deletions
diff --git a/gnu/packages/rust.scm b/gnu/packages/rust.scm
index 55e74eee4b7..8aa811431b4 100644
--- a/gnu/packages/rust.scm
+++ b/gnu/packages/rust.scm
@@ -1915,6 +1915,67 @@ ge13ca993e8ccb9ba9847cc330696e02839f328f7/jemalloc"))
1915 (copy-recursively "stage2/lib" 1915 (copy-recursively "stage2/lib"
1916 (string-append out "/lib"))))))))))))) 1916 (string-append out "/lib")))))))))))))
1917 1917
1918(define-public rust-1.95
1919 (let ((base-rust
1920 (rust-bootstrapped-package
1921 rust-1.94 "1.95.0"
1922 "05d53hj717ildhvm3rln7821r08nzbbfk72nqcvpb5j67sl856za")))
1923 (package
1924 (inherit base-rust)
1925 (source
1926 (origin
1927 (inherit (package-source base-rust))
1928 (snippet
1929 '(begin
1930 (for-each delete-file-recursively
1931 '("src/llvm-project"
1932 "vendor/curl-sys-0.4.79+curl-8.12.0/curl"
1933 "vendor/curl-sys-0.4.83+curl-8.15.0/curl"
1934 "vendor/curl-sys-0.4.84+curl-8.17.0/curl"
1935 "vendor/jemalloc-sys-0.5.3+5.3.0-patched/jemalloc"
1936 "vendor/jemalloc-sys-0.5.4+5.3.0-patched/jemalloc"
1937 "vendor/libffi-sys-4.1.0/libffi"
1938 "vendor/libmimalloc-sys-0.1.44/c_src/mimalloc"
1939 "vendor/libz-sys-1.1.21/src/zlib"
1940 "vendor/libz-sys-1.1.23/src/zlib"
1941 "vendor/openssl-src-111.28.2+1.1.1w/openssl"
1942 "vendor/openssl-src-300.5.0+3.5.0/openssl"
1943 "vendor/openssl-src-300.5.4+3.5.4/openssl"
1944 "vendor/tikv-jemalloc-sys-0.5.4+5.3.0-patched/jemalloc"
1945 "vendor/tikv-jemalloc-sys-0.6.1+5.3.0-1-\
1946ge13ca993e8ccb9ba9847cc330696e02839f328f7/jemalloc"))
1947 ;; Remove vendored dynamically linked libraries.
1948 ;; find . -not -type d -executable -exec file {} \+ | grep ELF
1949 ;; Also remove the bundled (mostly Windows) libraries.
1950 (for-each delete-file
1951 (find-files "vendor" "\\.(a|dll|exe|lib)$"))
1952 ;; Use the packaged nghttp2.
1953 (for-each
1954 (lambda (ver)
1955 (let ((vendored-dir
1956 (format #f "vendor/libnghttp2-sys-~a/nghttp2" ver))
1957 (build-rs
1958 (format #f "vendor/libnghttp2-sys-~a/build.rs" ver)))
1959 (delete-file-recursively vendored-dir)
1960 (delete-file build-rs)
1961 (call-with-output-file build-rs
1962 (lambda (port)
1963 (format port "fn main() {~@
1964 println!(\"cargo:rustc-link-lib=nghttp2\");~@
1965 }~%")))))
1966 '("0.1.11+1.64.0"))
1967 ;; Adjust vendored dependency to explicitly use rustix with libc
1968 ;; backend.
1969 (substitute* '("vendor/tempfile-3.14.0/Cargo.toml"
1970 "vendor/tempfile-3.16.0/Cargo.toml"
1971 "vendor/tempfile-3.19.1/Cargo.toml"
1972 "vendor/tempfile-3.20.0/Cargo.toml"
1973 "vendor/tempfile-3.21.0/Cargo.toml"
1974 "vendor/tempfile-3.23.0/Cargo.toml"
1975 "vendor/tempfile-3.24.0/Cargo.toml")
1976 (("features = \\[\"fs\"" all)
1977 (string-append all ", \"use-libc\""))))))))))
1978
1918(define (make-ignore-test-list strs) 1979(define (make-ignore-test-list strs)
1919 "Function to make creating a list to ignore tests a bit easier." 1980 "Function to make creating a list to ignore tests a bit easier."
1920 (map (lambda (str) 1981 (map (lambda (str)
@@ -1929,7 +1990,7 @@ ge13ca993e8ccb9ba9847cc330696e02839f328f7/jemalloc"))
1929;;; Here we take the latest included Rust, make it public, and re-enable tests 1990;;; Here we take the latest included Rust, make it public, and re-enable tests
1930;;; and extra components such as rustfmt. 1991;;; and extra components such as rustfmt.
1931(define-public rust 1992(define-public rust
1932 (let ((base-rust rust-1.94)) 1993 (let ((base-rust rust-1.95))
1933 (package 1994 (package
1934 (inherit base-rust) 1995 (inherit base-rust)
1935 (properties (append 1996 (properties (append