switchyard-server 0.2.0

Rust HTTP server surface for libsy algorithms
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
rust-version = "1.96.1"
name = "switchyard-server"
version = "0.2.0"
authors = ["NVIDIA Corporation"]
build = false
publish = ["crates-io"]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Rust HTTP server surface for libsy algorithms"
homepage = "https://github.com/NVIDIA-NeMo/Switchyard"
documentation = "https://docs.rs/switchyard-server"
readme = "README.md"
keywords = [
    "llm",
    "proxy",
    "routing",
    "openai",
    "anthropic",
]
license = "Apache-2.0"
repository = "https://github.com/NVIDIA-NeMo/Switchyard"

[lib]
name = "switchyard_server"
path = "src/lib.rs"

[[bin]]
name = "switchyard-server"
path = "src/main.rs"

[[test]]
name = "server"
path = "tests/server.rs"

[dependencies.async-stream]
version = "0.3"

[dependencies.async-trait]
version = "0.1"

[dependencies.axum]
version = "0.8"

[dependencies.axum-server]
version = "0.8"
features = ["tls-rustls"]
default-features = false

[dependencies.clap]
version = "4"
features = [
    "derive",
    "env",
]

[dependencies.futures-util]
version = "0.3"

[dependencies.http]
version = "1"

[dependencies.humantime]
version = "2.4"

[dependencies.libsy]
version = "0.2.0"
package = "switchyard-libsy"

[dependencies.opentelemetry]
version = "0.32"
features = [
    "metrics",
    "trace",
]
default-features = false

[dependencies.opentelemetry-otlp]
version = "0.32"
features = [
    "http-proto",
    "metrics",
    "reqwest-blocking-client",
    "reqwest-rustls",
    "trace",
]
default-features = false

[dependencies.opentelemetry-prometheus]
version = "0.32"

[dependencies.opentelemetry_sdk]
version = "0.32"
features = [
    "metrics",
    "trace",
]
default-features = false

[dependencies.parking_lot]
version = "0.12"

[dependencies.prometheus]
version = "0.14"

[dependencies.rustls]
version = "0.23"
features = [
    "aws-lc-rs",
    "std",
    "tls12",
]
default-features = false

[dependencies.serde]
version = "1"
features = ["derive"]

[dependencies.serde_json]
version = "1"

[dependencies.switchyard-llm-client]
version = "0.2.0"

[dependencies.switchyard-protocol]
version = "0.2.0"

[dependencies.switchyard-translation]
version = "0.2.0"

[dependencies.tokio]
version = "1"
features = ["full"]

[dependencies.toml]
version = "1.1"

[dependencies.tracing]
version = "0.1"
features = [
    "attributes",
    "std",
]
default-features = false

[dependencies.tracing-opentelemetry]
version = "0.33"

[dependencies.tracing-subscriber]
version = "0.3"
features = ["env-filter"]

[dev-dependencies.async-trait]
version = "0.1"

[dev-dependencies.http-body-util]
version = "0.1"

[dev-dependencies.tempfile]
version = "3"

[dev-dependencies.tokio]
version = "1"
features = ["full"]

[dev-dependencies.tower]
version = "0.5"
features = ["util"]