litellm/litellm-rust/crates/gateway/Cargo.toml
Yujong Lee 302ab0b1c2 refactor(rust): add gateway and router hook seams
The Rust gateway now calls hooks at all three request layers, each from its
own layer code:

- gateway: GatewayHooks::pre_call in the shared request::route step every
  handler already goes through, post_call as a layer on the inference router
- router: RouterHooks::filter_deployments inside Router::select
- inference: the existing Interceptors, composed with the cache-key capture
  through a route-neutral Chain

Hooks are stored type-erased (Arc<dyn ...>, DynInterceptors in litellm-host),
so Gateway, Router and the route handlers keep their plain signatures.
Defaults are no-ops; only tests install recorders.
2026-10-06 16:21:44 -07:00

41 lines
1.1 KiB
TOML

[package]
name = "litellm-gateway"
version = "0.1.0"
edition.workspace = true
license.workspace = true
repository.workspace = true
[dependencies]
axum.workspace = true
envy = "0.4.2"
http-body-util = "0.1"
litellm-inference.workspace = true
litellm-gateway-inference.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-auth-types.workspace = true
litellm-config.workspace = true
litellm-http = { workspace = true, features = ["mcp"] }
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]
futures-util.workspace = true
litellm-host.workspace = true
wiremock.workspace = true
base64.workspace = true
rstest.workspace = true
tempfile.workspace = true
tokio = { workspace = true, features = ["sync"] }
tower = { version = "0.5", features = ["util"] }