From d320cd2dc6c51f30e3ef4596c96acec01c78d638 Mon Sep 17 00:00:00 2001 From: vshengbro Date: Fri, 9 Oct 2026 14:37:11 +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 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. --- Cargo.toml | 4 ++-- application/header/const.rs | 23 +++++++++++++++++++++++ application/header/mod.rs | 3 +++ application/lib.rs | 3 +++ 4 files changed, 31 insertions(+), 2 deletions(-) create mode 100644 application/header/const.rs create mode 100644 application/header/mod.rs diff --git a/Cargo.toml b/Cargo.toml index 30c41da2..08ee269c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -43,17 +43,17 @@ sysinfo = "0.38.4" tracing = "0.1.44" num_cpus = "1.17.0" chunkify = "10.1.11" -hyperlane = "21.7.8" once_cell = "1.21.4" color-log = "10.1.11" +hyperlane = "21.12.0" serde_with = "3.24.0" serde_yaml = "0.9.33" urlencoding = "2.1.3" jwt-service = "10.1.11" color-output = "10.1.11" -hyperlane-core = "21.7.8" lombok-macros = "10.1.11" file-operation = "10.1.11" +hyperlane-core = "21.12.0" server-manager = "10.1.11" hyperlane-macros = "23.0.21" instrument-level = "10.1.11" diff --git a/application/header/const.rs b/application/header/const.rs new file mode 100644 index 00000000..2358a1d2 --- /dev/null +++ b/application/header/const.rs @@ -0,0 +1,23 @@ +/// HTTP `date` header name. +pub(crate) const DATE: &str = "date"; + +/// HTTP `range` request header name. +pub(crate) const RANGE: &str = "range"; + +/// HTTP `expires` response header name. +pub(crate) const EXPIRES: &str = "expires"; + +/// HTTP `accept-ranges` response header name. +pub(crate) const ACCEPT_RANGES: &str = "accept-ranges"; + +/// HTTP `authorization` request header name. +pub(crate) const AUTHORIZATION: &str = "authorization"; + +/// HTTP `cache-control` header name. +pub(crate) const CACHE_CONTROL: &str = "cache-control"; + +/// HTTP `content-range` response header name. +pub(crate) const CONTENT_RANGE: &str = "content-range"; + +/// HTTP `content-disposition` response header name. +pub(crate) const CONTENT_DISPOSITION: &str = "content-disposition"; diff --git a/application/header/mod.rs b/application/header/mod.rs new file mode 100644 index 00000000..1c7d0d10 --- /dev/null +++ b/application/header/mod.rs @@ -0,0 +1,3 @@ +mod r#const; + +pub(crate) use r#const::*; diff --git a/application/lib.rs b/application/lib.rs index 24bae0d7..f093f497 100644 --- a/application/lib.rs +++ b/application/lib.rs @@ -7,6 +7,7 @@ pub mod controller; pub mod domain; pub mod exception; +mod header; pub mod mapper; pub mod middleware; pub mod model; @@ -15,6 +16,8 @@ pub mod service; pub mod utils; pub mod view; +pub(crate) use header::*; + use std::{ collections::{HashMap, HashSet}, sync::{Arc, OnceLock},