summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/rust.scm32
1 files changed, 32 insertions, 0 deletions
diff --git a/gnu/packages/rust.scm b/gnu/packages/rust.scm
index fbf6613c330..2d9c93a08e6 100644
--- a/gnu/packages/rust.scm
+++ b/gnu/packages/rust.scm
@@ -1404,6 +1404,38 @@ safety and thread safety guarantees.")
1404 "library/std" 1404 "library/std"
1405 "src/tools/cargo"))))))))))) 1405 "src/tools/cargo")))))))))))
1406 1406
1407(define-public rust-1.88
1408 (let ((base-rust
1409 (rust-bootstrapped-package rust-1.87 "1.88.0"
1410 "1gngrxjfqiyybyamzn8s4rfbhk7jss1vrmnijg8y72l46i2595rs")))
1411 (package
1412 (inherit base-rust)
1413 (source
1414 (origin
1415 (inherit (package-source base-rust))
1416 (snippet
1417 '(begin
1418 (for-each delete-file-recursively
1419 '("src/llvm-project"
1420 "vendor/jemalloc-sys-0.3.2"
1421 "vendor/jemalloc-sys-0.5.3+5.3.0-patched/jemalloc"
1422 "vendor/openssl-src-111.17.0+1.1.1m/openssl"
1423 "vendor/openssl-src-300.4.2+3.4.1/openssl"
1424 "vendor/tikv-jemalloc-sys-0.5.4+5.3.0-patched/jemalloc"
1425 "vendor/tikv-jemalloc-sys-0.6.0+5.3.0-1-ge13ca993e8ccb9ba9847cc330696e02839f328f7/jemalloc"))
1426 ;; Remove vendored dynamically linked libraries.
1427 ;; find . -not -type d -executable -exec file {} \+ | grep ELF
1428 ;; Also remove the bundled (mostly Windows) libraries.
1429 (for-each delete-file
1430 (find-files "vendor" "\\.(a|dll|exe|lib)$"))
1431 ;; Adjust vendored dependency to explicitly use rustix with libc backend.
1432 (substitute* '("vendor/tempfile-3.14.0/Cargo.toml"
1433 "vendor/tempfile-3.17.1/Cargo.toml"
1434 "vendor/tempfile-3.19.0/Cargo.toml"
1435 "vendor/tempfile-3.19.1/Cargo.toml")
1436 (("features = \\[\"fs\"" all)
1437 (string-append all ", \"use-libc\""))))))))))
1438
1407(define (make-ignore-test-list strs) 1439(define (make-ignore-test-list strs)
1408 "Function to make creating a list to ignore tests a bit easier." 1440 "Function to make creating a list to ignore tests a bit easier."
1409 (map (lambda (str) 1441 (map (lambda (str)