diff --git a/Cargo.lock b/Cargo.lock index b826226347..bbe801f550 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -10396,7 +10396,7 @@ dependencies = [ [[package]] name = "rustfs-gateway" version = "0.66.0" -source = "git+https://github.com/rustfs/gateway.git?rev=60dcd2a55713dbcc9dbd6e165922e1a0df4473d7#60dcd2a55713dbcc9dbd6e165922e1a0df4473d7" +source = "git+https://github.com/rustfs/gateway.git?rev=810c39fa41347ea27d1b1310201b3f941f0e3310#810c39fa41347ea27d1b1310201b3f941f0e3310" dependencies = [ "arc-swap", "bytes", @@ -10443,7 +10443,7 @@ dependencies = [ [[package]] name = "rustfs-gateway-core" version = "0.63.0" -source = "git+https://github.com/rustfs/gateway.git?rev=60dcd2a55713dbcc9dbd6e165922e1a0df4473d7#60dcd2a55713dbcc9dbd6e165922e1a0df4473d7" +source = "git+https://github.com/rustfs/gateway.git?rev=810c39fa41347ea27d1b1310201b3f941f0e3310#810c39fa41347ea27d1b1310201b3f941f0e3310" dependencies = [ "bytes", "futures-core", @@ -10464,7 +10464,7 @@ dependencies = [ [[package]] name = "rustfs-gateway-dialect-rustfs-admin" version = "0.13.0" -source = "git+https://github.com/rustfs/gateway.git?rev=60dcd2a55713dbcc9dbd6e165922e1a0df4473d7#60dcd2a55713dbcc9dbd6e165922e1a0df4473d7" +source = "git+https://github.com/rustfs/gateway.git?rev=810c39fa41347ea27d1b1310201b3f941f0e3310#810c39fa41347ea27d1b1310201b3f941f0e3310" dependencies = [ "bytes", "form_urlencoded", @@ -10478,7 +10478,7 @@ dependencies = [ [[package]] name = "rustfs-gateway-http" version = "0.1.4" -source = "git+https://github.com/rustfs/gateway.git?rev=60dcd2a55713dbcc9dbd6e165922e1a0df4473d7#60dcd2a55713dbcc9dbd6e165922e1a0df4473d7" +source = "git+https://github.com/rustfs/gateway.git?rev=810c39fa41347ea27d1b1310201b3f941f0e3310#810c39fa41347ea27d1b1310201b3f941f0e3310" dependencies = [ "hmac 0.13.0", "http 1.5.0", @@ -10496,7 +10496,7 @@ dependencies = [ [[package]] name = "rustfs-gateway-macros" version = "0.1.4" -source = "git+https://github.com/rustfs/gateway.git?rev=60dcd2a55713dbcc9dbd6e165922e1a0df4473d7#60dcd2a55713dbcc9dbd6e165922e1a0df4473d7" +source = "git+https://github.com/rustfs/gateway.git?rev=810c39fa41347ea27d1b1310201b3f941f0e3310#810c39fa41347ea27d1b1310201b3f941f0e3310" dependencies = [ "proc-macro2", "quote", @@ -10506,7 +10506,7 @@ dependencies = [ [[package]] name = "rustfs-gateway-sig" version = "0.15.0" -source = "git+https://github.com/rustfs/gateway.git?rev=60dcd2a55713dbcc9dbd6e165922e1a0df4473d7#60dcd2a55713dbcc9dbd6e165922e1a0df4473d7" +source = "git+https://github.com/rustfs/gateway.git?rev=810c39fa41347ea27d1b1310201b3f941f0e3310#810c39fa41347ea27d1b1310201b3f941f0e3310" dependencies = [ "hmac 0.13.0", "http 1.5.0", @@ -10521,7 +10521,7 @@ dependencies = [ [[package]] name = "rustfs-gateway-stream" version = "0.2.0" -source = "git+https://github.com/rustfs/gateway.git?rev=60dcd2a55713dbcc9dbd6e165922e1a0df4473d7#60dcd2a55713dbcc9dbd6e165922e1a0df4473d7" +source = "git+https://github.com/rustfs/gateway.git?rev=810c39fa41347ea27d1b1310201b3f941f0e3310#810c39fa41347ea27d1b1310201b3f941f0e3310" dependencies = [ "bitflags 2.13.2", "bytes", @@ -10532,7 +10532,7 @@ dependencies = [ [[package]] name = "rustfs-gateway-types" version = "0.42.0+aws.2026-10-02" -source = "git+https://github.com/rustfs/gateway.git?rev=60dcd2a55713dbcc9dbd6e165922e1a0df4473d7#60dcd2a55713dbcc9dbd6e165922e1a0df4473d7" +source = "git+https://github.com/rustfs/gateway.git?rev=810c39fa41347ea27d1b1310201b3f941f0e3310#810c39fa41347ea27d1b1310201b3f941f0e3310" dependencies = [ "bytes", "crc-fast", @@ -10555,7 +10555,7 @@ dependencies = [ [[package]] name = "rustfs-gateway-xml" version = "0.4.0" -source = "git+https://github.com/rustfs/gateway.git?rev=60dcd2a55713dbcc9dbd6e165922e1a0df4473d7#60dcd2a55713dbcc9dbd6e165922e1a0df4473d7" +source = "git+https://github.com/rustfs/gateway.git?rev=810c39fa41347ea27d1b1310201b3f941f0e3310#810c39fa41347ea27d1b1310201b3f941f0e3310" dependencies = [ "quick-xml 0.41.0", ] diff --git a/Cargo.toml b/Cargo.toml index 1cfb2d39fc..65c1866e7c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -154,16 +154,16 @@ rustfs-zip = { path = "./crates/zip", version = "1.0.5" } # engine crates move onto from s3s (rustfs/backlog#2745). The one pin of the # gateway in this workspace; no crate may enable a `compat-s3s*` feature except # the s3s-facing edge of the rustfs binary. -rustfs-gateway-types = { git = "https://github.com/rustfs/gateway.git", rev = "60dcd2a55713dbcc9dbd6e165922e1a0df4473d7", version = "0.42.0", default-features = false } -rustfs-gateway-stream = { git = "https://github.com/rustfs/gateway.git", rev = "60dcd2a55713dbcc9dbd6e165922e1a0df4473d7", version = "0.2.0", default-features = false } +rustfs-gateway-types = { git = "https://github.com/rustfs/gateway.git", rev = "810c39fa41347ea27d1b1310201b3f941f0e3310", version = "0.42.0", default-features = false } +rustfs-gateway-stream = { git = "https://github.com/rustfs/gateway.git", rev = "810c39fa41347ea27d1b1310201b3f941f0e3310", version = "0.2.0", default-features = false } # The gateway framework itself, consumed for its extension traits by the ring-2 # adapter. `default-features = false` keeps the `server` feature, and with it the # server crate, out of the build. -rustfs-gateway = { git = "https://github.com/rustfs/gateway.git", rev = "60dcd2a55713dbcc9dbd6e165922e1a0df4473d7", version = "0.66.0", default-features = false } +rustfs-gateway = { git = "https://github.com/rustfs/gateway.git", rev = "810c39fa41347ea27d1b1310201b3f941f0e3310", version = "0.66.0", default-features = false } # Test-only: builds the `EffectiveHost` a host-resolution test queries with. -rustfs-gateway-http = { git = "https://github.com/rustfs/gateway.git", rev = "60dcd2a55713dbcc9dbd6e165922e1a0df4473d7", default-features = false } -rustfs-gateway-core = { git = "https://github.com/rustfs/gateway.git", rev = "60dcd2a55713dbcc9dbd6e165922e1a0df4473d7", version = "0.63.0", default-features = false } -rustfs-gateway-dialect-rustfs-admin = { git = "https://github.com/rustfs/gateway.git", rev = "60dcd2a55713dbcc9dbd6e165922e1a0df4473d7", version = "0.13.0", default-features = false } +rustfs-gateway-http = { git = "https://github.com/rustfs/gateway.git", rev = "810c39fa41347ea27d1b1310201b3f941f0e3310", default-features = false } +rustfs-gateway-core = { git = "https://github.com/rustfs/gateway.git", rev = "810c39fa41347ea27d1b1310201b3f941f0e3310", version = "0.63.0", default-features = false } +rustfs-gateway-dialect-rustfs-admin = { git = "https://github.com/rustfs/gateway.git", rev = "810c39fa41347ea27d1b1310201b3f941f0e3310", version = "0.13.0", default-features = false } # Async Runtime and Networking async-channel = "2.5.0" diff --git a/rustfs/src/error.rs b/rustfs/src/error.rs index 46742361da..8437560b18 100644 --- a/rustfs/src/error.rs +++ b/rustfs/src/error.rs @@ -266,7 +266,11 @@ impl std::fmt::Display for ClientBodyReadTimeout { } } -impl std::error::Error for ClientBodyReadTimeout {} +impl std::error::Error for ClientBodyReadTimeout { + fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { + Some(&rustfs_gateway::HostBodyReadTimeout) + } +} /// Marks a server-side object/source reader failure that must not be reported as /// a malformed client request body.