# 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.85"
name = "kaccy-api"
version = "0.2.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "REST API and WebSocket server for Kaccy Protocol - comprehensive backend service"
homepage = "https://github.com/cool-japan/kaccy"
documentation = "https://docs.rs/kaccy"
readme = "README.md"
keywords = [
    "api",
    "rest",
    "websocket",
    "graphql",
    "axum",
]
categories = [
    "web-programming::http-server",
    "api-bindings",
]
license = "Apache-2.0"
repository = "https://github.com/cool-japan/kaccy"
resolver = "2"

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

[[bin]]
name = "kaccy-api"
path = "src/main.rs"

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

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

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

[[bench]]
name = "load_tests"
path = "benches/load_tests.rs"
harness = false

[dependencies.anyhow]
version = "1"

[dependencies.argon2]
version = "0.5"

[dependencies.async-graphql]
version = "7.2"

[dependencies.async-graphql-axum]
version = "7.2"

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

[dependencies.axum]
version = "0.8"
features = ["ws"]

[dependencies.bytes]
version = "1.11"

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

[dependencies.dashmap]
version = "6"

[dependencies.dotenvy]
version = "0.15"

[dependencies.futures]
version = "0.3"

[dependencies.hex]
version = "0.4"

[dependencies.hmac]
version = "0.13"

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

[dependencies.jsonwebtoken]
version = "10"
features = ["rust_crypto"]

[dependencies.kaccy-bitcoin]
version = "0.2.0"

[dependencies.kaccy-core]
version = "0.2.0"

[dependencies.kaccy-db]
version = "0.2.0"

[dependencies.kaccy-reputation]
version = "0.2.0"

[dependencies.lazy_static]
version = "1.5"

[dependencies.lettre]
version = "0.11"
features = [
    "tokio1-native-tls",
    "builder",
    "hostname",
]

[dependencies.oauth2]
version = "5.0"
features = ["reqwest"]

[dependencies.opentelemetry]
version = "0.31"

[dependencies.opentelemetry-otlp]
version = "0.31"
features = [
    "tokio",
    "grpc-tonic",
]

[dependencies.opentelemetry-semantic-conventions]
version = "0.31"

[dependencies.opentelemetry_sdk]
version = "0.31"
features = ["rt-tokio"]

[dependencies.prometheus]
version = "0.14"
features = ["process"]

[dependencies.qrcode]
version = "0.14"

[dependencies.rand]
version = "0.10"

[dependencies.reqwest]
version = "0.13"
features = [
    "json",
    "stream",
]

[dependencies.rust_decimal]
version = "1.41"
features = ["serde"]

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

[dependencies.serde_json]
version = "1.0"

[dependencies.sha2]
version = "0.11"

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

[dependencies.sys-info]
version = "0.9"

[dependencies.thiserror]
version = "2"

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

[dependencies.tokio-stream]
version = "0.1"

[dependencies.totp-rs]
version = "5"
features = [
    "qr",
    "otpauth",
]

[dependencies.tower]
version = "0.5"

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

[dependencies.tracing]
version = "0.1"

[dependencies.tracing-opentelemetry]
version = "0.32"

[dependencies.tracing-subscriber]
version = "0.3"
features = [
    "env-filter",
    "json",
]

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

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

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

[dev-dependencies.criterion]
version = "0.8"
features = ["async_tokio"]

[dev-dependencies.tokio-test]
version = "0.4"
