guix_mirror_bot pushed a commit to branch rust-team
in repository guix.

commit 1626b40c0a8824cdb8c709019935d6b8d0be9de9
Author: Efraim Flashner <[email protected]>
AuthorDate: Tue Sep 15 11:43:17 2026 +0300

    gnu: Add rust-1.98.
    
    * gnu/packages/rust.scm (rust-1.98): New variable.
    
    Change-Id: Ic907e05035933f700d9b9cf06731951486dd1e54
---
 gnu/packages/rust.scm | 62 +++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 62 insertions(+)

diff --git a/gnu/packages/rust.scm b/gnu/packages/rust.scm
index 83f27d6469d..7dba144dce1 100644
--- a/gnu/packages/rust.scm
+++ b/gnu/packages/rust.scm
@@ -2104,6 +2104,68 @@ ge13ca993e8ccb9ba9847cc330696e02839f328f7/jemalloc"))
                (("features = \\[\"fs\"" all)
                 (string-append all ", \"use-libc\""))))))))))
 
+(define-public rust-1.98
+  (let ((base-rust
+         (rust-bootstrapped-package
+          rust-1.97 "1.98.1"
+          "0np6bv8y3njcq5hbnf1kcfd3lg8116sc2g64g9n4si1jgf8qp7yw")))
+    (package
+      (inherit base-rust)
+      (source
+       (origin
+         (inherit (package-source base-rust))
+         (snippet
+          '(begin
+             (for-each delete-file-recursively
+                       '("src/llvm-project"
+                         "vendor/curl-sys-0.4.79+curl-8.12.0/curl"
+                         "vendor/curl-sys-0.4.87+curl-8.19.0/curl"
+                         "vendor/curl-sys-0.4.90+curl-8.21.0/curl"
+                         "vendor/jemalloc-sys-0.5.3+5.3.0-patched/jemalloc"
+                         "vendor/jemalloc-sys-0.5.4+5.3.0-patched/jemalloc"
+                         "vendor/libffi-sys-4.1.0/libffi"
+                         "vendor/libmimalloc-sys-0.1.49/c_src/mimalloc"
+                         "vendor/libz-sys-1.1.21/src/zlib"
+                         "vendor/libz-sys-1.1.23/src/zlib"
+                         "vendor/libz-sys-1.1.29/src/zlib"
+                         "vendor/openssl-src-111.28.2+1.1.1w/openssl"
+                         "vendor/openssl-src-300.5.0+3.5.0/openssl"
+                         "vendor/openssl-src-300.6.1+3.6.3/openssl"
+                         
"vendor/tikv-jemalloc-sys-0.5.4+5.3.0-patched/jemalloc"
+                         "vendor/tikv-jemalloc-sys-0.6.1+5.3.0-1-\
+ge13ca993e8ccb9ba9847cc330696e02839f328f7/jemalloc"))
+             ;; Remove vendored dynamically linked libraries.
+             ;; find . -not -type d -executable -exec file {} \+ | grep ELF
+             ;; Also remove the bundled (mostly Windows) libraries.
+             (for-each delete-file
+                       (find-files "vendor" "\\.(a|dll|exe|lib)$"))
+             ;; Use the packaged nghttp2.
+             (for-each
+              (lambda (ver)
+                (let ((vendored-dir
+                       (format #f "vendor/libnghttp2-sys-~a/nghttp2" ver))
+                      (build-rs
+                       (format #f "vendor/libnghttp2-sys-~a/build.rs" ver)))
+                  (delete-file-recursively vendored-dir)
+                  (delete-file build-rs)
+                  (call-with-output-file build-rs
+                    (lambda (port)
+                      (format port "fn main() {~@
+                         println!(\"cargo:rustc-link-lib=nghttp2\");~@
+                         }~%")))))
+              '("0.1.11+1.64.0"
+                "0.1.13+1.68.1"))
+             ;; Adjust vendored dependency to explicitly use rustix with libc
+             ;; backend.
+             (substitute* '("vendor/tempfile-3.14.0/Cargo.toml"
+                            "vendor/tempfile-3.16.0/Cargo.toml"
+                            "vendor/tempfile-3.19.1/Cargo.toml"
+                            "vendor/tempfile-3.20.0/Cargo.toml"
+                            "vendor/tempfile-3.23.0/Cargo.toml"
+                            "vendor/tempfile-3.27.0/Cargo.toml")
+               (("features = \\[\"fs\"" all)
+                (string-append all ", \"use-libc\""))))))))))
+
 (define (make-ignore-test-list strs)
   "Function to make creating a list to ignore tests a bit easier."
   (map (lambda (str)

Reply via email to