[package]
edition = "2021"
rust-version = "1.82"
name = "rtb-chat"
version = "0.7.0"
authors = ["Matt Cockayne <matt@phpboyscout.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Unified multi-provider AI chat client for Claude, OpenAI, Gemini, and OpenAI-compatible endpoints. Part of the phpboyscout Rust toolkit."
homepage = "https://chat.rust.phpboyscout.uk"
documentation = "https://docs.rs/rtb-chat"
readme = "README.md"
keywords = [
"ai",
"chat",
"llm",
"claude",
"openai",
]
categories = [
"api-bindings",
"development-tools",
]
license = "MIT"
repository = "https://gitlab.com/phpboyscout/rust/chat"
[lib]
name = "rtb_chat"
path = "src/lib.rs"
[[test]]
name = "unit"
path = "tests/unit.rs"
[dependencies.async-trait]
version = "0.1.91"
[dependencies.bytes]
version = "1.12.1"
[dependencies.futures-util]
version = "0.3.33"
[dependencies.genai]
version = "0.6.5"
[dependencies.jsonschema]
version = "0.48.1"
[dependencies.miette]
version = "7.6.0"
features = ["fancy"]
[dependencies.reqwest]
version = "0.13.4"
features = [
"rustls",
"json",
"stream",
"gzip",
]
default-features = false
[dependencies.rtb-redact]
version = "0.6.0"
[dependencies.schemars]
version = "1.2.1"
[dependencies.secrecy]
version = "0.10.3"
[dependencies.serde]
version = "1.0.229"
features = ["derive"]
[dependencies.serde_json]
version = "1.0.150"
[dependencies.thiserror]
version = "2.0.19"
[dependencies.tokio]
version = "1.53.0"
features = ["full"]
[dependencies.tracing]
version = "0.1.44"
[dependencies.url]
version = "2.5.8"
[dev-dependencies.wiremock]
version = "0.6.5"
[lints.clippy]
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
multiple_crate_versions = "allow"
[lints.clippy.cargo]
level = "warn"
priority = -1
[lints.clippy.nursery]
level = "warn"
priority = -1
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.rust]
missing_docs = "warn"
unsafe_code = "deny"