From 8198d8d3ff3046c668a3388f0517b31b77d34f1b Mon Sep 17 00:00:00 2001 From: vshengbro Date: Fri, 9 Oct 2026 14:10:36 +0800 Subject: [PATCH] chore(deps): bump hyperlane and hyperlane-core to 21.12.0 hyperlane-core 21.12.0 changes Server::route to take path: impl AsRef; 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. --- Cargo.toml | 4 ++-- application/middleware/request/const.rs | 2 ++ application/middleware/request/mod.rs | 3 +++ 3 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 application/middleware/request/const.rs diff --git a/Cargo.toml b/Cargo.toml index 43077836..b374c8f8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -32,8 +32,8 @@ hyperlane_resources = { path = "resources", version = "23.0.36" } hyperlane_application = { path = "application", version = "23.0.36" } tracing = "0.1.44" -hyperlane = "21.3.6" -hyperlane-core = "21.7.6" +hyperlane = "21.12.0" +hyperlane-core = "21.12.0" hyperlane-utils = "33.1.14" serde = { version = "1.0.229", features = ["derive"] } diff --git a/application/middleware/request/const.rs b/application/middleware/request/const.rs new file mode 100644 index 00000000..c4639a0f --- /dev/null +++ b/application/middleware/request/const.rs @@ -0,0 +1,2 @@ +/// HTTP `date` header name, lowercased per HTTP/2 convention. +pub(crate) const DATE: &str = "date"; diff --git a/application/middleware/request/mod.rs b/application/middleware/request/mod.rs index 4dfc79f4..f17857ff 100644 --- a/application/middleware/request/mod.rs +++ b/application/middleware/request/mod.rs @@ -1,6 +1,9 @@ +mod r#const; mod r#impl; mod r#struct; pub use r#struct::*; +pub(crate) use r#const::*; + use super::*;