[package]
edition = "2024"
rust-version = "1.93"
name = "firstpass-proxy"
version = "0.1.4"
authors = ["Firstpass"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Drop-in, Anthropic-compatible LLM proxy that routes each request to the cheapest model that provably passes a quality gate, escalates on failure, and records a tamper-evident audit trace."
homepage = "https://dshakes.github.io/firstpass"
documentation = "https://docs.rs/firstpass-proxy"
readme = false
keywords = [
"llm",
"proxy",
"routing",
"anthropic",
"ai",
]
categories = [
"web-programming::http-server",
"command-line-utilities",
]
license = "Apache-2.0"
repository = "https://github.com/dshakes/firstpass"
[lib]
name = "firstpass_proxy"
path = "src/lib.rs"
[[bin]]
name = "firstpass"
path = "src/bin/firstpass.rs"
[[bin]]
name = "firstpass-proxy"
path = "src/main.rs"
[[example]]
name = "demo"
path = "examples/demo.rs"
[[test]]
name = "end_to_end"
path = "tests/end_to_end.rs"
[[test]]
name = "observe_loop"
path = "tests/observe_loop.rs"
[dependencies.async-trait]
version = "0.1"
[dependencies.axum]
version = "0.8"
[dependencies.bytes]
version = "1"
[dependencies.firstpass-core]
version = "0.1.4"
[dependencies.jiff]
version = "0.2"
features = ["serde"]
[dependencies.metrics]
version = "0.24"
[dependencies.metrics-exporter-prometheus]
version = "0.18"
default-features = false
[dependencies.reqwest]
version = "0.12"
features = [
"json",
"rustls-tls",
"stream",
]
default-features = false
[dependencies.rusqlite]
version = "0.37"
features = ["bundled"]
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.serde_json]
version = "1"
[dependencies.thiserror]
version = "2"
[dependencies.tokio]
version = "1"
features = [
"rt-multi-thread",
"macros",
"net",
"sync",
"signal",
"process",
"io-util",
"time",
]
[dependencies.tower]
version = "0.5"
features = [
"limit",
"util",
]
[dependencies.tracing]
version = "0.1"
[dependencies.tracing-subscriber]
version = "0.3"
features = [
"env-filter",
"fmt",
]
[dependencies.uuid]
version = "1"
features = [
"v7",
"serde",
]
[dev-dependencies.tokio]
version = "1"
features = [
"rt-multi-thread",
"macros",
"net",
"sync",
"signal",
"process",
"io-util",
"time",
"test-util",
"time",
]
[lints.clippy]
dbg_macro = "warn"
expect_used = "warn"
todo = "warn"
unwrap_used = "warn"
[lints.rust]
missing_debug_implementations = "warn"
unsafe_code = "forbid"