[package]
edition = "2024"
name = "modelmux"
version = "1.0.0"
authors = ["Jaro <yarenty@gmail.com>"]
build = false
exclude = [
".idea/*",
"target/*",
"*.log",
".env*",
"!.env.example",
"!LICENSE-MIT",
"!LICENSE-APACHE",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "ModelMux - high-performance Rust gateway that translates OpenAI-compatible API requests to Vertex AI (Claude), with streaming, tool calling, and production-grade reliability."
homepage = "https://github.com/yarenty/modelmux"
documentation = "https://docs.rs/modelmux"
readme = "README.md"
keywords = [
"openai",
"vertex-ai",
"anthropic",
"proxy",
"ai",
]
categories = [
"web-programming",
"api-bindings",
"network-programming",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/yarenty/modelmux"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
"--cfg",
"docsrs",
]
[package.metadata.deb]
maintainer = "Jaro <yarenty@gmail.com>"
section = "net"
depends = "$auto"
extended-description = """
ModelMux is a high-performance proxy server that converts OpenAI-compatible
API requests to Vertex AI (Anthropic Claude) format. Supports streaming,
tool calling, and production-grade reliability.
."""
maintainer-scripts = "packaging/debian"
[package.metadata.deb.systemd-units]
enable = true
[lib]
name = "modelmux"
path = "src/lib.rs"
[[bin]]
name = "modelmux"
path = "src/main.rs"
[[test]]
name = "cli_tests"
path = "tests/cli_tests.rs"
[[test]]
name = "config_tests"
path = "tests/config_tests.rs"
[[test]]
name = "integration_tests"
path = "tests/integration_tests.rs"
[dependencies.anyhow]
version = "1.0"
[dependencies.async-trait]
version = "0.1"
[dependencies.axum]
version = "0.8"
features = [
"json",
"multipart",
]
[dependencies.base64]
version = "0.22"
[dependencies.bytes]
version = "1.11"
[dependencies.chrono]
version = "0.4"
[dependencies.directories]
version = "5.0"
[dependencies.dotenvy]
version = "0.15"
[dependencies.futures]
version = "0.3"
[dependencies.hyper-util]
version = "0.1"
[dependencies.reqwest]
version = "0.13"
features = [
"json",
"stream",
]
[dependencies.serde]
version = "1.0"
features = ["derive"]
[dependencies.serde_json]
version = "1.0"
[dependencies.shellexpand]
version = "3.1"
[dependencies.thiserror]
version = "2.0"
[dependencies.tokio]
version = "1"
features = ["full"]
[dependencies.tokio-stream]
version = "0.1"
[dependencies.toml]
version = "0.8"
[dependencies.tower]
version = "0.5"
[dependencies.tower-http]
version = "0.6"
features = [
"cors",
"trace",
]
[dependencies.tracing]
version = "0.1"
[dependencies.tracing-subscriber]
version = "0.3"
features = ["env-filter"]
[dependencies.yup-oauth2]
version = "12.1"
features = ["hyper-rustls"]
[dev-dependencies.base64]
version = "0.22"
[dev-dependencies.reqwest]
version = "0.13"
features = ["json"]
[dev-dependencies.temp-env]
version = "0.3"
[dev-dependencies.tempfile]
version = "3.8"
[dev-dependencies.tokio-test]
version = "0.4"
[profile.release]
opt-level = "z"
lto = true
codegen-units = 1
debug = 0
panic = "abort"
overflow-checks = true