# 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"
name = "dullahan"
version = "0.1.3"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A self-hosted, cookie-free backend for small sites: privacy-first analytics, a headless blog/content API, and a contact endpoint — one Rust binary that serves its own tracker."
homepage = "https://github.com/intrebit/dullahan"
readme = "README.md"
keywords = [
    "analytics",
    "privacy",
    "headless",
    "self-hosted",
    "backend",
]
categories = ["web-programming::http-server"]
license = "MIT"
repository = "https://github.com/intrebit/dullahan"

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

[[bin]]
name = "dullahan"
path = "src/main.rs"

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

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

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

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

[dependencies.anyhow]
version = "1"

[dependencies.axum]
version = "0.7"
features = [
    "json",
    "tokio",
]

[dependencies.axum-prometheus]
version = "0.7"

[dependencies.base64]
version = "0.22"

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

[dependencies.metrics]
version = "0.23"

[dependencies.rand]
version = "0.8"

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

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

[dependencies.serde_json]
version = "1"

[dependencies.sha2]
version = "0.10"

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

[dependencies.thiserror]
version = "1"

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

[dependencies.tower-http]
version = "0.5"
features = [
    "cors",
    "trace",
    "set-header",
    "timeout",
    "request-id",
    "util",
]

[dependencies.tower_governor]
version = "0.4"

[dependencies.tracing]
version = "0.1"

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

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

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