The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
fix(rust): pin aws-sdk-s3 without relaxing eventstream pins
Yujong Lee605729a194c9
diff --git a/litellm-rust/Cargo.lock b/litellm-rust/Cargo.lockindex 4018ee2875b..e2337f41ebc 100644--- a/litellm-rust/Cargo.lock+++ b/litellm-rust/Cargo.lock@@ -261,9 +261,9 @@ dependencies = [[[package]]name = "aws-sdk-s3"-version = "1.148.0"+version = "1.146.1"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "8a61c1db3987ab6c8740fb87f248864687d50549401115244a84f02c3047b2d5"+checksum = "2cd651b4400d4011b8927b83a9552bf90ff11e6e5da0b9f0a7583247aceec971"dependencies = ["arc-swap","aws-credential-types",@@ -1380,7 +1380,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb"dependencies = ["libc",- "windows-sys 0.61.2",+ "windows-sys 0.52.0",][[package]]@@ -2152,7 +2152,7 @@ dependencies = ["libc","percent-encoding","pin-project-lite",- "socket2 0.6.5",+ "socket2 0.5.10","tokio","tower-service","tracing",@@ -3638,7 +3638,7 @@ dependencies = ["quinn-udp","rustc-hash","rustls 0.23.42",- "socket2 0.6.5",+ "socket2 0.5.10","thiserror 2.0.19","tokio","tracing",@@ -3677,9 +3677,9 @@ dependencies = ["cfg_aliases","libc","once_cell",- "socket2 0.6.5",+ "socket2 0.5.10","tracing",- "windows-sys 0.61.2",+ "windows-sys 0.52.0",][[package]]@@ -4104,7 +4104,7 @@ dependencies = ["errno","libc","linux-raw-sys",- "windows-sys 0.61.2",+ "windows-sys 0.52.0",][[package]]@@ -4175,7 +4175,7 @@ dependencies = ["security-framework","security-framework-sys","webpki-root-certs",- "windows-sys 0.61.2",+ "windows-sys 0.52.0",][[package]]@@ -4699,10 +4699,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "32497e9a4c7b38532efcdebeef879707aa9f794296a4f0244f6f69e9bc8574bd"dependencies = ["fastrand",- "getrandom 0.4.3",+ "getrandom 0.3.4","once_cell","rustix",- "windows-sys 0.61.2",+ "windows-sys 0.52.0",][[package]]@@ -5542,7 +5542,7 @@ version = "0.1.11"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "c2a7b1c03c876122aa43f3020e6c3c3ee5c05081c9a00739faf7503aeba10d22"dependencies = [- "windows-sys 0.61.2",+ "windows-sys 0.52.0",][[package]]diff --git a/litellm-rust/crates/cache-s3/Cargo.toml b/litellm-rust/crates/cache-s3/Cargo.tomlindex c5d084207c8..cdc17e732cb 100644--- a/litellm-rust/crates/cache-s3/Cargo.toml+++ b/litellm-rust/crates/cache-s3/Cargo.toml@@ -8,7 +8,7 @@ repository.workspace = true[dependencies]litellm-cache.workspace = truelitellm-auth-aws.workspace = true-aws-sdk-s3 = { version = "1.141.0", default-features = false, features = ["rustls", "rt-tokio"] }+aws-sdk-s3 = { version = "1.146.1", default-features = false, features = ["rustls", "rt-tokio"] }aws-credential-types = "1.3.0"aws-smithy-types = "1.6.0"aws-types = "1.6.0"diff --git a/litellm-rust/crates/cache-s3/src/cache.rs b/litellm-rust/crates/cache-s3/src/cache.rsindex 1aa16ecaaa0..a2ea33c33e4 100644--- a/litellm-rust/crates/cache-s3/src/cache.rs+++ b/litellm-rust/crates/cache-s3/src/cache.rs@@ -152,8 +152,8 @@ impl<C: CacheCodec> BaseCache for S3Cache<C> {type Value = C::Value;type Context = ExactCacheContext;- fn get_ttl(&self, _context: &Self::Context) -> Option<Duration> {- None+ fn get_ttl(&self, context: &Self::Context) -> Option<Duration> {+ context.ttl}fn set_cache(diff --git a/litellm-rust/crates/cache-s3/tests/cache.rs b/litellm-rust/crates/cache-s3/tests/cache.rsindex 93e88cf7cbd..6ca3eb9a758 100644--- a/litellm-rust/crates/cache-s3/tests/cache.rs+++ b/litellm-rust/crates/cache-s3/tests/cache.rs@@ -204,6 +204,12 @@ async fn unsupported_and_noop_capabilities_match_python() {cache.flush_cache().unwrap();cache.disconnect().await.unwrap();assert_eq!(cache.get_ttl(&ExactCacheContext::default()), None);+ assert_eq!(+ cache.get_ttl(&ExactCacheContext {+ ttl: Some(Duration::from_secs(45)),+ }),+ Some(Duration::from_secs(45))+ );assert!(server.received_requests().await.unwrap().is_empty());}diff --git a/litellm-rust/crates/framer/Cargo.toml b/litellm-rust/crates/framer/Cargo.tomlindex 60dfa9469d2..62bfcc7da3d 100644--- a/litellm-rust/crates/framer/Cargo.toml+++ b/litellm-rust/crates/framer/Cargo.toml@@ -11,7 +11,7 @@ aws = ["dep:aws-smithy-eventstream", "dep:aws-smithy-types"]sse = ["dep:sse-stream"][dependencies]-aws-smithy-eventstream = { version = "0.61.1", optional = true }+aws-smithy-eventstream = { version = "=0.61.4", optional = true }aws-smithy-types = { version = "1.6.1", optional = true }bytes = "1"futures-util.workspace = truediff --git a/litellm-rust/crates/llms/Cargo.toml b/litellm-rust/crates/llms/Cargo.tomlindex 8bdbb7c3b77..f04b78feee1 100644--- a/litellm-rust/crates/llms/Cargo.toml+++ b/litellm-rust/crates/llms/Cargo.toml@@ -34,7 +34,7 @@ tokio = { workspace = true, features = ["sync"] }url.workspace = true[dev-dependencies]-aws-smithy-eventstream = "0.61.1"+aws-smithy-eventstream = "=0.61.4"aws-smithy-types = "1.6.1"rstest.workspace = truetokio.workspace = true