# 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.88"
name = "ceres-server"
version = "0.5.0"
authors = ["Andrea Bozzo"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "REST API server for Ceres harvesting, embedding, and search workflows"
readme = "README.md"
license = "Apache-2.0"
repository = "https://github.com/AndreaBozzo/Ceres"
resolver = "2"

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

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

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

[dependencies.anyhow]
version = "1.0"

[dependencies.axum]
version = "0.7"
features = ["macros"]

[dependencies.ceres-client]
version = "0.5.0"

[dependencies.ceres-core]
version = "0.5.0"

[dependencies.ceres-db]
version = "0.5.0"

[dependencies.chrono]
version = "0.4"
features = ["serde"]

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

[dependencies.dotenvy]
version = "0.15"

[dependencies.futures]
version = "0.3"

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

[dependencies.serde_json]
version = "1.0.148"

[dependencies.sqlx]
version = "0.8"
features = [
    "runtime-tokio",
    "tls-rustls",
    "postgres",
    "uuid",
    "chrono",
    "json",
]

[dependencies.subtle]
version = "2"

[dependencies.thiserror]
version = "2.0"

[dependencies.tokio]
version = "1.49.0"
features = [
    "full",
    "full",
]

[dependencies.tokio-util]
version = "0.7"

[dependencies.tower]
version = "0.4"
features = [
    "util",
    "timeout",
]

[dependencies.tower-http]
version = "0.5"
features = [
    "cors",
    "trace",
    "compression-gzip",
]

[dependencies.tower_governor]
version = "0.4"
features = ["axum"]

[dependencies.tracing]
version = "0.1.44"

[dependencies.tracing-subscriber]
version = "0.3"

[dependencies.utoipa]
version = "5"
features = [
    "axum_extras",
    "chrono",
    "uuid",
]

[dependencies.utoipa-swagger-ui]
version = "8"
features = ["axum"]

[dependencies.uuid]
version = "1.19.0"
features = [
    "v4",
    "serde",
]

[dev-dependencies.ceres-client]
version = "0.5.0"
features = ["test-support"]

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

[dev-dependencies.serde_json]
version = "1.0.148"

[dev-dependencies.testcontainers]
version = "0.27"

[dev-dependencies.tokio]
version = "1.49.0"
features = [
    "full",
    "macros",
    "rt-multi-thread",
]

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