litellm/litellm-rust/crates/gateway/Cargo.toml
Yujong Lee ba1f6164b7 refactor(gateway): move forwarding into a gateway-forward crate with protocol tests
The forwarder is a reverse proxy, not a mounted endpoint, so it gets its own crate
with a socket-level test harness and a property test that any generated request and
response cross it unchanged

The tests found two bugs, fixed here. Pooled connections to Python outlived uvicorn's
keep-alive, so a request could land on a connection Python was closing and get a 502.
They now retire at half of LITELLM_FORWARD_KEEPALIVE_TIMEOUT (default 5s, uvicorn's
default). A GET with a chunked body reached Python empty, because hyper's client drops
an unknown-length GET body unless transfer-encoding is set

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-03 11:23:47 +09:00

43 lines
1.2 KiB
TOML

[package]
name = "litellm-gateway"
version = "0.1.0"
edition.workspace = true
license.workspace = true
repository.workspace = true
[dependencies]
litellm-secret-value.workspace = true
axum.workspace = true
envy = "0.4.2"
http-body-util = "0.1"
litellm-inference.workspace = true
litellm-gateway-inference.workspace = true
litellm-gateway-forward.workspace = true
litellm-gateway-mcp.workspace = true
tokio-util = "0.7"
thiserror.workspace = true
futures-util.workspace = true
litellm-gateway-auth.workspace = true
litellm-gateway-ui.workspace = true
litellm-config.workspace = true
litellm-error.workspace = true
litellm-circuit-breaker.workspace = true
litellm-redis-client.workspace = true
litellm-http.workspace = true
litellm-llms.workspace = true
litellm-secrets.workspace = true
litellm-tracing.workspace = true
serde_json.workspace = true
serde.workspace = true
tracing.workspace = true
tokio = { workspace = true, features = ["signal"] }
uuid.workspace = true
tower-sessions-moka-store = "0.15.0"
[dev-dependencies]
litellm-redis-testing.workspace = true
base64.workspace = true
rstest.workspace = true
tempfile.workspace = true
tokio = { workspace = true, features = ["sync"] }
tower = { version = "0.5", features = ["util"] }