[router] migrate router from actix to axum (#8479)
This commit is contained in:
@@ -10,41 +10,41 @@ name = "sglang_router_rs"
|
||||
crate-type = ["cdylib", "rlib"]
|
||||
|
||||
[dependencies]
|
||||
actix-web = "4.0"
|
||||
axum = { version = "0.8.4", features = ["macros", "ws", "tracing"] }
|
||||
tower = { version = "0.5", features = ["full"] }
|
||||
tower-http = { version = "0.6", features = ["trace", "compression-gzip", "cors", "timeout", "limit", "request-id", "util"] }
|
||||
serde = { version = "1.0", features = ["derive"] }
|
||||
clap = { version = "4.4", features = ["derive"] }
|
||||
serde_json = "1.0"
|
||||
bytes = "1.8.0"
|
||||
rand = "0.8.5"
|
||||
reqwest = { version = "0.12.8", features = ["stream", "blocking", "json"] }
|
||||
futures-util = "0.3"
|
||||
serde_json = "1.0"
|
||||
futures = "0.3"
|
||||
pyo3 = { version = "0.22.5", features = ["extension-module"] }
|
||||
dashmap = "6.1.0"
|
||||
http = "1.1.0"
|
||||
tokio = { version = "1.42.0", features = ["macros", "rt-multi-thread"] }
|
||||
# Added for enhanced logging system
|
||||
tokio = { version = "1.42.0", features = ["full"] }
|
||||
async-trait = "0.1"
|
||||
once_cell = "1.21"
|
||||
tracing = "0.1"
|
||||
tracing-subscriber = { version = "0.3", features = ["env-filter", "json", "chrono"] }
|
||||
tracing-log = "0.2"
|
||||
tracing-appender = "0.2.3"
|
||||
chrono = "0.4"
|
||||
kube = { version = "0.88.1", features = ["runtime", "derive"] }
|
||||
k8s-openapi = { version = "0.21.0", features = ["v1_29"] }
|
||||
futures = "0.3"
|
||||
async-trait = "0.1"
|
||||
once_cell = "1.21"
|
||||
# Added for metrics
|
||||
metrics = "0.24.2"
|
||||
metrics-exporter-prometheus = "0.17.0"
|
||||
# Added for request tracing
|
||||
uuid = { version = "1.10", features = ["v4", "serde"] }
|
||||
thiserror = "2.0.12"
|
||||
url = "2.5.4"
|
||||
tokio-stream = { version = "0.1", features = ["sync"] }
|
||||
|
||||
[dev-dependencies]
|
||||
criterion = { version = "0.5", features = ["html_reports"] }
|
||||
tokio-stream = "0.1"
|
||||
actix-http = "3.0"
|
||||
futures = "0.3"
|
||||
tower = { version = "0.5", features = ["util"] }
|
||||
http-body-util = "0.1"
|
||||
portpicker = "0.1"
|
||||
|
||||
[[bench]]
|
||||
name = "request_processing"
|
||||
|
||||
Reference in New Issue
Block a user