# 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"
name = "e2ee-backend-adapter"
version = "4.0.0"
build = false
publish = ["crates-io"]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Manifest-driven backend adapter library and server runtime for e2ee-client-backend"
homepage = "https://github.com/benedikt-weyer/e2ee-backend-adapter#readme"
readme = "README.md"
license = "Apache-2.0"
repository = "https://github.com/benedikt-weyer/e2ee-backend-adapter"

[package.metadata.docs.rs]
all-features = true

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

[[bin]]
name = "e2ee-backend-adapter-server"
path = "src/bin/e2ee-backend-adapter-server.rs"

[dependencies.anyhow]
version = "1.0"

[dependencies.argon2]
version = "0.5"

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

[dependencies.base64]
version = "0.22"

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

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

[dependencies.hex]
version = "0.4"

[dependencies.rand]
version = "0.8"

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

[dependencies.serde_json]
version = "1.0"

[dependencies.sha2]
version = "0.10"

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

[dependencies.tokio]
version = "1.43"
features = [
    "macros",
    "rt-multi-thread",
    "signal",
]

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

[dependencies.tracing]
version = "0.1"

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

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