64 lines
1.5 KiB
Plaintext
64 lines
1.5 KiB
Plaintext
[package]
|
|
name = "rtx-serving-api"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
authors = ["Claude AI Assistant"]
|
|
license = "MIT"
|
|
repository = "https://github.com/rustytorch/rustytorch"
|
|
description = "HTTP/gRPC serving layer for rtx-inference runtime with REST APIs and streaming support"
|
|
|
|
[dependencies]
|
|
# Workspace dependencies (will add rtx-inference after resolving rustg dependency)
|
|
# rtx-inference = { path = "../rtx-inference" }
|
|
|
|
# HTTP server framework
|
|
axum = { version = "0.7", features = ["http2", "ws", "tokio"] }
|
|
tower = { version = "0.4", features = ["full"] }
|
|
tower-http = { version = "0.5", features = ["cors", "trace", "timeout"] }
|
|
hyper = { version = "1.0", features = ["full"] }
|
|
|
|
# Async runtime
|
|
tokio = { version = "1.0", features = ["full", "rt-multi-thread"] }
|
|
async-trait = "0.1"
|
|
futures-util = "0.3"
|
|
|
|
# Serialization for JSON APIs
|
|
serde = { version = "1.0", features = ["derive"] }
|
|
serde_json = "1.0"
|
|
|
|
# Error handling
|
|
anyhow = "1.0"
|
|
thiserror = "1.0"
|
|
|
|
# HTTP utilities
|
|
mime = "0.3"
|
|
headers = "0.4"
|
|
|
|
# Logging and telemetry
|
|
tracing = "0.1"
|
|
tracing-subscriber = "0.3"
|
|
|
|
# UUID for request tracking
|
|
uuid = { version = "1.0", features = ["v4", "serde"] }
|
|
|
|
# Time utilities
|
|
chrono = { version = "0.4", features = ["serde"] }
|
|
|
|
# gRPC support
|
|
tonic = "0.10"
|
|
prost = "0.12"
|
|
tokio-stream = "0.1"
|
|
|
|
# WebSocket support
|
|
tokio-tungstenite = "0.21"
|
|
|
|
[dev-dependencies]
|
|
tokio-test = "0.4"
|
|
axum-test = "14.0"
|
|
proptest = "1.4"
|
|
criterion = { version = "0.5", features = ["html_reports"] }
|
|
|
|
[features]
|
|
default = []
|
|
grpc = [] # Future gRPC support
|
|
metrics = ["tracing-subscriber/env-filter"] |