Repository navigation
chore(deps): upgrade faster-hex to 2.1 and simplify hex call sites - #37248
Open
zhangsoledad wants to merge 2 commits into
Open
zhangsoledad wants to merge 2 commits into
zhangsoledad wants to merge 2 commits into
Conversation
zhangsoledad
marked this pull request as draft
November 30, 2026 05:18
zhangsoledad
marked this pull request as ready for review
November 30, 2026 05:26
zhangsoledad
force-pushed
the
chore/upgrade-faster-hex-2.1
branch
from
November 30, 2026 08:32
385c45b to
0593e75
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Upgrade workspace
faster-hexfrom0.10.0(0.10.1) to2.1(2.1.0) withdefault-features = false, features = ["std"], and simplify existingfaster_hexcall sites withfaster-hex2.x APIs.Motivation
faster-hex 0.10.1has AArch64 NEON encoding/checking but falls back to scalar decoding on AArch64 and has no AVX-512BW path.2.1adds AArch64 NEON decoding, AVX-512BW validation/decoding, refined short-input SIMD/scalar paths, and 2.x checked/formatting APIs (hex_decode_array,hex_decode_vec,Hex,Hex::leading_digits).serdefeature and upgrading past0.10.1removesheapless 0.8.0andhash32 0.3.1fromCargo.lock(and dropsfaster-hex's ownautocfgbuild dependency).faster-hex2.1 requires Rust 1.95.0, which matchesrust-toolchain.toml.Changes
Cargo.toml/Cargo.lock: Upgradefaster-hexto{ version = "2.1", default-features = false, features = ["std"] }.ext/kv/lib.rs: Usefaster_hex::hex_decode_array::<10>for versionstamp decoding instead of a manual[0u8; 10]buffer and length check.ext/node_crypto/keys.rs: Usefaster_hex::hex_decode_vecfor legacy PEM IV decoding to returnVec<u8>directly instead of a manual even-length check andvec![0u8; ...].cli/tools/compile.rs: Format temporary filename suffix directly withfaster_hex::Hexinstead of a stack[0u8; 16]buffer and.unwrap().cli/tools/desktop.rs: UseHex::leading_digits(16).to_string()inpayload_hash(instead of encoding all 64 digits then slicing and reallocating), and drop redundant.to_lowercase()onhex_string.runtime/ops/desktop.rs: Drop redundant.to_lowercase()onfaster_hex::hex_string.Verification
cargo fmt -- --checkcargo metadata --locked&cargo check --locked -p deno_npm_cachecargo clippy -p deno_npm_cache -p deno_kv -p deno_node_crypto -p deno_runtime -p deno -- -D warningscargo clippy -p deno -p test_server --tests -- -D warningscargo test -p deno_npm_cachecargo test -p deno --lib -- desktop(130 passed) andcargo test -p deno --lib -- checksum