# 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 = "2021"
rust-version = "1.82"
name = "rtb-ai"
version = "0.5.4"
authors = ["Matt Cockayne <matt@phpboyscout.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Rust Tool Base — unified AI client for Claude, OpenAI, Gemini, and OpenAI-compatible endpoints."
homepage = "https://rtb.phpboyscout.uk"
documentation = "https://rtb.phpboyscout.uk"
readme = "README.md"
keywords = [
    "cli",
    "framework",
    "scaffolding",
    "ai",
    "mcp",
]
categories = [
    "command-line-interface",
    "development-tools",
]
license = "MIT"
repository = "https://gitlab.com/phpboyscout/rust-tool-base"

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

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

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

[dependencies.bytes]
version = "1"

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

[dependencies.genai]
version = "0.5"

[dependencies.jsonschema]
version = "0.46"

[dependencies.miette]
version = "7"
features = ["fancy"]

[dependencies.reqwest]
version = "0.12"
features = [
    "rustls-tls",
    "json",
    "stream",
    "gzip",
]
default-features = false

[dependencies.rtb-app]
version = "0.5.4"

[dependencies.rtb-credentials]
version = "0.5.4"

[dependencies.rtb-error]
version = "0.5.4"

[dependencies.rtb-redact]
version = "0.5.4"

[dependencies.schemars]
version = "1"

[dependencies.secrecy]
version = "0.10"

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

[dependencies.serde_json]
version = "1"

[dependencies.thiserror]
version = "2"

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

[dependencies.tracing]
version = "0.1"

[dependencies.url]
version = "2"

[dev-dependencies.serde]
version = "1"
features = [
    "derive",
    "derive",
]

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

[dev-dependencies.wiremock]
version = "0.6"

[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"
