build(toolchain): Rust 1.99.1

Five stable releases behind (1.94.1, 2026-03-25). Two reasons to move now rather than on the next
Dependabot nudge:

- The rustls fix for RUSTSEC-2026-0285 (>= 0.23.45) does not resolve under `rust-version = "1.94"`:
  resolver 3 is MSRV-aware and stops at 0.23.43, so `main`'s red `cargo audit` cannot be fixed on
  the old pin at all.
- `cfg_select!` is stable since 1.95, which is the condition ARCHITECTURE §10 set for lifting the
  rusqlite 0.37 hold.

`rust-version` moves with the pin, so the workspace never claims a floor it is not built with.
Clippy 1.99 adds `chunks_exact_to_as_chunks`; the build script's SHA-256 now uses `as_chunks`, which
also removes two `try_into().unwrap_or` fallbacks that could never fire.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
poli0981andClaude Opus 5.5 committed 2026-10-17 00:55:27 +07:00
1 parent 2300b637a9
commit 1af0ec127b
3 files changed
+8 -6

No files matched your search

+1 -1
View File
@@ -5,7 +5,7 @@ members = ["crates/pipdock-core", "crates/pipdock-cli", "src-tauri", "xtask"]
[workspace.package]
version = "1.3.0"
edition = "2024"
rust-version = "1.94"
rust-version = "1.99"
license = "GPL-3.0-only"
repository = "https://github.com/poli0981/pipdock"
authors = ["Kokone (poli0981)"]
+6 -4
View File
@@ -186,16 +186,18 @@ impl Sha256 {
}
let mut out = [0u8; 32];
for (chunk, word) in out.chunks_exact_mut(4).zip(self.state) {
chunk.copy_from_slice(&word.to_be_bytes());
let (words, _) = out.as_chunks_mut::<4>();
for (chunk, word) in words.iter_mut().zip(self.state) {
*chunk = word.to_be_bytes();
}
out
}
fn compress(&mut self, block: &[u8; 64]) {
let mut w = [0u32; 64];
for (slot, chunk) in w.iter_mut().zip(block.chunks_exact(4)) {
*slot = u32::from_be_bytes(chunk.try_into().unwrap_or([0; 4]));
let (words, _) = block.as_chunks::<4>();
for (slot, chunk) in w.iter_mut().zip(words) {
*slot = u32::from_be_bytes(*chunk);
}
for i in 16..64 {
let s0 = w[i - 15].rotate_right(7) ^ w[i - 15].rotate_right(18) ^ (w[i - 15] >> 3);
+1 -1
View File
@@ -1,5 +1,5 @@
[toolchain]
channel = "1.94.1"
channel = "1.99.1"
components = ["rustfmt", "clippy"]
targets = ["x86_64-pc-windows-msvc"]
profile = "minimal"