commit fb85ca0eea50a037c9f8d1a87d90dc8875e555d1
parent 36fe1d723edf8106bf3bae9b22361ba4b7d5c5be
Author: triesap <tyson@radroots.org>
Date: Thu, 15 Oct 2026 22:53:26 +0000
build: Qualify Tangle compiler inputs on Rust 1.99.0
- Raise the eight inherited package minimums to exact Rust 1.99.0.
- Qualify the existing stable selector while preserving dependency locks.
- Adopt the compiler-required array chunk iterator without changing hex checks.
- Verify retained native tests, strict lint, formatting and documentation.
Diffstat:
5 files changed, 4 insertions(+), 5 deletions(-)
diff --git a/Cargo.toml b/Cargo.toml
@@ -15,7 +15,7 @@ resolver = "2"
version = "0.1.0"
edition = "2024"
authors = ["Radroots Authors"]
-rust-version = "1.92.0"
+rust-version = "1.99.0"
license = "AGPL-3.0-or-later"
[workspace.lints.rust]
diff --git a/crates/tangle_crypto/src/lib.rs b/crates/tangle_crypto/src/lib.rs
@@ -232,7 +232,7 @@ fn fixed_hex_bytes(value: &str, expected: usize, scalar: &str) -> Result<Vec<u8>
));
}
let mut output = Vec::with_capacity(expected);
- for chunk in value.as_bytes().chunks_exact(2) {
+ for chunk in value.as_bytes().as_chunks::<2>().0 {
let high = hex_value(chunk[0], scalar)?;
let low = hex_value(chunk[1], scalar)?;
output.push((high << 4) | low);
diff --git a/crates/tangle_runtime/src/ops.rs b/crates/tangle_runtime/src/ops.rs
@@ -365,7 +365,6 @@ mod tests {
"tangle_ws_connections_total",
]
.into_iter()
- .into_iter()
.collect::<BTreeSet<_>>()
);
assert_eq!(metric_types.keys().copied().collect::<BTreeSet<_>>(), keys);
diff --git a/crates/tangle_test_support/src/lib.rs b/crates/tangle_test_support/src/lib.rs
@@ -335,7 +335,7 @@ fn fixed_hex_bytes(value: &str, expected: usize, scalar: &str) -> Result<Vec<u8>
));
}
let mut output = Vec::with_capacity(expected);
- for chunk in value.as_bytes().chunks_exact(2) {
+ for chunk in value.as_bytes().as_chunks::<2>().0 {
output.push((hex_value(chunk[0], scalar)? << 4) | hex_value(chunk[1], scalar)?);
}
Ok(output)
diff --git a/rust-toolchain.toml b/rust-toolchain.toml
@@ -1,2 +1,2 @@
[toolchain]
-channel = "1.97.1"
+channel = "1.99.0"