diff options
| author | Brennan Vincent <brennan@umanwizard.com> | 2025-03-21 03:03:35 -0700 |
|---|---|---|
| committer | Hilton Chain <hako@ultrarare.space> | 2025-08-21 19:07:57 +0800 |
| commit | 8ce4cae5c35ff2cf837a021cc47a6e3741d1cf82 (patch) | |
| tree | 837fd5773b22bf6915b972e014af3d5629d21b12 | |
| parent | cb32391e047ac9a918e26daa4bcbf95514456d90 (diff) | |
gnu: rust: Update to 1.85.
* 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>
| -rw-r--r-- | gnu/packages/rust.scm | 41 |
1 files changed, 34 insertions, 7 deletions
diff --git a/gnu/packages/rust.scm b/gnu/packages/rust.scm index ccf28c63f89..bf7eeb5fbf5 100644 --- a/gnu/packages/rust.scm +++ b/gnu/packages/rust.scm | |||
| @@ -1085,6 +1085,34 @@ safety and thread safety guarantees.") | |||
| 1085 | (rust-bootstrapped-package rust-1.83 "1.84.1" | 1085 | (rust-bootstrapped-package rust-1.83 "1.84.1" |
| 1086 | "0xdk3g1xq33fy4m7q6l38ba9ydxbanccyb0vczvlk998jvababsy")) | 1086 | "0xdk3g1xq33fy4m7q6l38ba9ydxbanccyb0vczvlk998jvababsy")) |
| 1087 | 1087 | ||
| 1088 | (define-public rust-1.85 | ||
| 1089 | (let ((base-rust | ||
| 1090 | (rust-bootstrapped-package rust-1.84 "1.85.1" | ||
| 1091 | "12i3jkxrc2bbd2d423q7krwkbc39wlwkjacsimx7b61m1359aa8g"))) | ||
| 1092 | (package | ||
| 1093 | (inherit base-rust) | ||
| 1094 | (source | ||
| 1095 | (origin | ||
| 1096 | (inherit (package-source base-rust)) | ||
| 1097 | (snippet | ||
| 1098 | '(begin | ||
| 1099 | (for-each delete-file-recursively | ||
| 1100 | '("src/llvm-project" | ||
| 1101 | "vendor/jemalloc-sys-0.3.2" | ||
| 1102 | "vendor/jemalloc-sys-0.5.3+5.3.0-patched/jemalloc" | ||
| 1103 | "vendor/openssl-src-111.28.2+1.1.1w/openssl" | ||
| 1104 | "vendor/tikv-jemalloc-sys-0.5.4+5.3.0-patched/jemalloc" | ||
| 1105 | "vendor/tikv-jemalloc-sys-0.6.0+5.3.0-1-ge13ca993e8ccb9ba9847cc330696e02839f328f7/jemalloc")) | ||
| 1106 | ;; Remove vendored dynamically linked libraries. | ||
| 1107 | ;; find . -not -type d -executable -exec file {} \+ | grep ELF | ||
| 1108 | ;; Also remove the bundled (mostly Windows) libraries. | ||
| 1109 | (for-each delete-file | ||
| 1110 | (find-files "vendor" "\\.(a|dll|exe|lib)$")) | ||
| 1111 | ;; Adjust vendored dependency to explicitly use rustix with libc backend. | ||
| 1112 | (substitute* '("vendor/tempfile-3.10.1/Cargo.toml" | ||
| 1113 | "vendor/tempfile-3.14.0/Cargo.toml") | ||
| 1114 | (("features = \\[\"fs\"" all) | ||
| 1115 | (string-append all ", \"use-libc\"")))))))))) | ||
| 1088 | 1116 | ||
| 1089 | (define (make-ignore-test-list strs) | 1117 | (define (make-ignore-test-list strs) |
| 1090 | "Function to make creating a list to ignore tests a bit easier." | 1118 | "Function to make creating a list to ignore tests a bit easier." |
| @@ -1100,7 +1128,7 @@ safety and thread safety guarantees.") | |||
| 1100 | ;;; Here we take the latest included Rust, make it public, and re-enable tests | 1128 | ;;; Here we take the latest included Rust, make it public, and re-enable tests |
| 1101 | ;;; and extra components such as rustfmt. | 1129 | ;;; and extra components such as rustfmt. |
| 1102 | (define-public rust | 1130 | (define-public rust |
| 1103 | (let ((base-rust rust-1.84)) | 1131 | (let ((base-rust rust-1.85)) |
| 1104 | (package | 1132 | (package |
| 1105 | (inherit base-rust) | 1133 | (inherit base-rust) |
| 1106 | (properties (append | 1134 | (properties (append |
| @@ -1114,19 +1142,18 @@ safety and thread safety guarantees.") | |||
| 1114 | (snippet | 1142 | (snippet |
| 1115 | '(begin | 1143 | '(begin |
| 1116 | (for-each delete-file-recursively | 1144 | (for-each delete-file-recursively |
| 1117 | '("src/gcc" | 1145 | '("src/llvm-project" |
| 1118 | "src/llvm-project" | ||
| 1119 | "vendor/jemalloc-sys-0.3.2/jemalloc" | 1146 | "vendor/jemalloc-sys-0.3.2/jemalloc" |
| 1120 | "vendor/jemalloc-sys-0.5.3+5.3.0-patched/jemalloc" | 1147 | "vendor/jemalloc-sys-0.5.3+5.3.0-patched/jemalloc" |
| 1121 | "vendor/jemalloc-sys-0.5.4+5.3.0-patched/jemalloc" | ||
| 1122 | "vendor/openssl-src-111.17.0+1.1.1m/openssl" | 1148 | "vendor/openssl-src-111.17.0+1.1.1m/openssl" |
| 1123 | "vendor/openssl-src-111.28.2+1.1.1w/openssl" | 1149 | "vendor/openssl-src-111.28.2+1.1.1w/openssl" |
| 1124 | "vendor/tikv-jemalloc-sys-0.5.4+5.3.0-patched/jemalloc" | 1150 | "vendor/tikv-jemalloc-sys-0.5.4+5.3.0-patched/jemalloc" |
| 1151 | "vendor/tikv-jemalloc-sys-0.6.0+5.3.0-1-ge13ca993e8ccb9ba9847cc330696e02839f328f7/jemalloc" | ||
| 1125 | ;; These are referenced by the cargo output | 1152 | ;; These are referenced by the cargo output |
| 1126 | ;; so we unbundle them. | 1153 | ;; so we unbundle them. |
| 1127 | "vendor/curl-sys-0.4.52+curl-7.81.0/curl" | 1154 | "vendor/curl-sys-0.4.52+curl-7.81.0/curl" |
| 1128 | "vendor/curl-sys-0.4.74+curl-8.9.0/curl" | 1155 | "vendor/curl-sys-0.4.74+curl-8.9.0/curl" |
| 1129 | "vendor/curl-sys-0.4.77+curl-8.10.1/curl" | 1156 | "vendor/curl-sys-0.4.78+curl-8.11.0/curl" |
| 1130 | "vendor/libffi-sys-2.3.0/libffi" | 1157 | "vendor/libffi-sys-2.3.0/libffi" |
| 1131 | "vendor/libz-sys-1.1.3/src/zlib" | 1158 | "vendor/libz-sys-1.1.3/src/zlib" |
| 1132 | "vendor/libz-sys-1.1.20/src/zlib")) | 1159 | "vendor/libz-sys-1.1.20/src/zlib")) |
| @@ -1159,7 +1186,7 @@ safety and thread safety guarantees.") | |||
| 1159 | '("3.3.0" | 1186 | '("3.3.0" |
| 1160 | "3.4.0" | 1187 | "3.4.0" |
| 1161 | "3.10.1" | 1188 | "3.10.1" |
| 1162 | "3.13.0")))))) | 1189 | "3.14.0")))))) |
| 1163 | (arguments | 1190 | (arguments |
| 1164 | (substitute-keyword-arguments | 1191 | (substitute-keyword-arguments |
| 1165 | (strip-keyword-arguments '(#:tests?) | 1192 | (strip-keyword-arguments '(#:tests?) |
| @@ -1292,7 +1319,7 @@ safety and thread safety guarantees.") | |||
| 1292 | (substitute* "install.rs" | 1319 | (substitute* "install.rs" |
| 1293 | ,@(make-ignore-test-list | 1320 | ,@(make-ignore-test-list |
| 1294 | '("fn install_global_cargo_config"))) | 1321 | '("fn install_global_cargo_config"))) |
| 1295 | (substitute* '("cargo_add/add_workspace_non_fuzzy/mod.rs" | 1322 | (substitute* '("cargo_add/normalize_name_path_existing/mod.rs" |
| 1296 | "cargo_info/within_ws_with_alternative_registry/mod.rs") | 1323 | "cargo_info/within_ws_with_alternative_registry/mod.rs") |
| 1297 | ,@(make-ignore-test-list | 1324 | ,@(make-ignore-test-list |
| 1298 | '("fn case"))) | 1325 | '("fn case"))) |
