Repository navigation
chore(deps): bump hyperlane and hyperlane-core to 21.12.0 - #23
Merged
vshengbro merged 1 commit intoOct 9, 2026
Merged
Conversation
hyperlane-core 21.12.0 changes Server::route to take path: impl AsRef<str>; this branch registers routes through the #[route] attribute macro (inventory-based), which never calls Server::route, so no call sites change here. The same release reduces several http-constant header-name constants to pub(crate) visibility (rust-standards section 18): ACCEPT_RANGES, AUTHORIZATION, CACHE_CONTROL, CONTENT_DISPOSITION, CONTENT_RANGE, DATE, EXPIRES and RANGE were consumed across the application crate's controllers, views, services and middleware. They now live as one local copy in application/header/const.rs per the section 18 consumer guidance, re-exported crate-internally from application/lib.rs. Cargo.lock intentionally still pins 21.10.0: crates.io serves 21.12.0 only after hyperlane-dev/hyperlane#43 merges and the publish workflow runs. Run cargo update -p hyperlane after that to refresh the lockfile.
vshengbro
force-pushed
the
chore/hyperlane-21.12.0-playground-2026-10-09
branch
from
October 9, 2026 06:43
59dd971 to
d320cd2
Compare
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
Bump
hyperlaneandhyperlane-corerequirements to21.12.0(from21.7.8). The two entries also move within the[workspace.dependencies]block to keep the §13.7 round-4 length-then-lexicographic order valid — the longer version strings changed their sort keys (verified withfix_dep_order.py --write+verify_dep_order.py, 0 violations).hyperlane-core 21.12.0 changes
Server::routetopub fn route<S>(&mut self, path: impl AsRef<str>)(hyperlane-dev/hyperlane#43). This branch registers all routes through the#[route]attribute macro, which usesinventory::submit!+HookType::Routeand never callsServer::route— so no route call sites change here (grep -rn 'route::<'returns 0).One adaptation is required for a different change shipping in the same release: 21.12.0 reduces several
http-constantheader-name constants topub(crate)(hyperlane §18 const-visibility sweep, commit684f3c0). This branch consumed eight of them across controllers, views, services and middleware, so they now live as one crate-local copy:application/header/const.rs(new) —pub(crate) constcopies ofACCEPT_RANGES,AUTHORIZATION,CACHE_CONTROL,CONTENT_DISPOSITION,CONTENT_RANGE,DATE,EXPIRES,RANGEapplication/header/mod.rs(new) —mod r#const;+pub(crate) use r#const::*;application/lib.rs— wiremod header;+pub(crate) use header::*;so every module reaches them through the existinguse super::*;chainsEMPTY_STRwas deliberately not copied: it is stillpubinhttp-constant21.12.0, and a local copy caused E0659 glob ambiguity (verified by build).Cargo.lockintentionally still pins 21.10.0: crates.io only serves 21.12.0 after hyperlane-dev/hyperlane#43 merges and the publish workflow runs. Refresh withcargo update -p hyperlaneafterwards.Verification
Verified locally with a temporary
[patch.crates-io]pointing at the hyperlane 21.12.0 working tree (patch section removed before commit):cargo build --workspace— clean (21.12.0 path-patched)cargo clippy --workspace --all-targets— 0 code warnings/errorscargo test --workspace --all-features— 1 test passes, all other suites emptycargo fmt --all+--check— 0 diff, idempotentverify_dep_order.py— 0 violations after reorderstaged_file_gate.py(pre-commit hook) — 0 new violationsroute::<T, P>patterns exist anywhere in the codebaseNotes
hyperlane = "21.12.0"until that PR merges and the publish job uploads 21.12.0 to crates.io. Merge this only after the lockfile refresh succeeds.sync_workspace_versionjob'sUpdate Cargo.lockstep has been failing since before this change (run 37859018004), so the Rust build jobs never start on this branch. That failure is unrelated to this PR and needs its own fix.