Repository navigation
chore(deps): upgrade faster-hex to 2.1 and adopt new codec APIs - #107
Open
zhangsoledad wants to merge 3 commits into
Open
zhangsoledad wants to merge 3 commits into
zhangsoledad wants to merge 3 commits into
Conversation
Upgrade `faster-hex` in `[build-dependencies]` and `[dev-dependencies]` from `0.6.0` to `2.1` (`default-features = false`, `features = ["std"]`), update `Cargo.lock` to `faster-hex 2.1.0`, and adopt its new safe codec helpers: - Encode binary hashes into a 64-byte stack buffer via `faster_hex::hex_encode` in `build.rs`, avoiding heap allocation on matching hashes. - Use `faster_hex::hex_decode_append` and `faster_hex::hex_decode_array` in `src/tests/secp256k1_blake160_multisig_all.rs` instead of pre-zeroed `vec![0u8; N]` buffers. - Update the CI toolchain in `.github/workflows/ci.yaml` from `1.67.1` to `1.95.0` (matching `faster-hex 2.1.0`'s MSRV) and fix the three Rust 1.95 clippy lints in `src/tests/`.
zhangsoledad
force-pushed
the
zhangsoledad/upgrade-faster-hex-2.1
branch
from
November 30, 2026 04:26
4f6d896 to
119eb8f
Compare
XuJiandong
approved these changes
Nov 30, 2026
Collaborator
|
pin rust version to 1.95 or above. |
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
faster-hexin[build-dependencies]and[dev-dependencies]from0.6.0to2.1(default-features = false, features = ["std"]) and adoptfaster-hex2.1 APIs:build.rs: Encode 32-byte Blake2b digests into a stack[0u8; 64]buffer viafaster_hex::hex_encodeinstead of allocating aStringper binary on the happy path.src/tests/secp256k1_blake160_multisig_all.rs: Usefaster_hex::hex_decode_vecandfaster_hex::hex_decode_array::<32>instead of zero-filledVecbuffers +hex_decode.rust-version = "1.95.0"inCargo.toml, bump CI Rust toolchain from1.67.1to1.95.0, and fix 3 Rust 1.95 clippy lints insrc/tests/.Release / MSRV Note
faster-hex2.1 is in[build-dependencies](used bybuild.rs), compiling this crate now requires Rust 1.95.0+ (matchingckband declared viarust-version = "1.95.0"inCargo.toml). Mention the MSRV bump (1.67.1→1.95.0) in the release notes when publishing.[dev-dependencies]only.