Skip to content

chore(deps): bump hyperlane and hyperlane-core to 21.12.0 - #22

Merged
vshengbro merged 1 commit into
masterfrom
chore/hyperlane-21.12.0-2026-10-09
Oct 9, 2026
Merged

vshengbro merged 1 commit into
masterfrom
chore/hyperlane-21.12.0-2026-10-09

Conversation

@vshengbro

Copy link
Copy Markdown
Member

Summary

Bump hyperlane and hyperlane-core requirements to 21.12.0 (from 21.3.6 / 21.7.6).

hyperlane-core 21.12.0 changes Server::route to pub fn route<S>(&mut self, path: impl AsRef<str>) (hyperlane-dev/hyperlane#43). This repository registers all 131 routes through the #[route] attribute macro, which uses inventory::submit! + HookType::Route and never calls Server::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 http-constant's DATE header-name constant to pub(crate) (hyperlane §18 const-visibility sweep, commit 684f3c0). The response header middleware used that constant, so it now carries its own local copy:

  • application/middleware/request/const.rs (new) — pub(crate) const DATE: &str = "date";
  • application/middleware/request/mod.rs — wire mod r#const; + pub(crate) use r#const::*;

Cargo.lock intentionally still pins 21.11.0: crates.io only serves 21.12.0 after hyperlane-dev/hyperlane#43 merges and the publish workflow runs. Refresh with cargo update -p hyperlane afterwards.

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/errors
  • cargo test --workspace --all-features — all suites pass (0 tests exist in this workspace)
  • cargo fmt --all + --check — 0 diff, idempotent
  • staged_file_gate.py (pre-commit hook) — 0 new violations
  • No route::<T, P> patterns exist anywhere in the codebase

Notes

hyperlane-core 21.12.0 changes Server::route to take
path: impl AsRef<str>; this repository registers routes through the
#[route] attribute macro (inventory-based), which never calls
Server::route, so no call sites change here.

The same release also reduces http-constant's DATE header-name
constant to pub(crate) visibility (rust-standards section 18), so
the response header middleware now carries its own local DATE copy
in application/middleware/request/const.rs per the section 18
consumer guidance.

Cargo.lock intentionally still pins 21.11.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.
@ghfind-review ghfind-review Bot added the review: high ghfind author score; see https://ghfind.com label Oct 9, 2026
@vshengbro
vshengbro merged commit 8198d8d into master Oct 9, 2026
8 of 10 checks passed
@vshengbro
vshengbro deleted the chore/hyperlane-21.12.0-2026-10-09 branch October 9, 2026 07:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

review: high ghfind author score; see https://ghfind.com

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant