# 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.80"
name = "cedros-sunscreen"
version = "0.1.1"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Sanctions screening API for blockchain addresses (OFAC, ransomware trackers)"
readme = "README.md"
license = "MIT OR Apache-2.0"

[features]
cli = [
    "dep:clap",
    "dep:tracing-subscriber",
    "dep:anyhow",
    "dep:dotenvy",
]
default = [
    "cli",
    "http",
]
http = [
    "dep:axum",
    "dep:tower-http",
    "dep:hyper",
]

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

[[bin]]
name = "cedros-sunscreen-server"
path = "src/main.rs"
required-features = ["cli"]

[dependencies.anyhow]
version = "1"
optional = true

[dependencies.axum]
version = "0.8"
features = [
    "macros",
    "json",
]
optional = true

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

[dependencies.clap]
version = "4"
features = ["derive"]
optional = true

[dependencies.dotenvy]
version = "0.15"
optional = true

[dependencies.hyper]
version = "1"
optional = true

[dependencies.regex]
version = "1"

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

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

[dependencies.serde_json]
version = "1"

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

[dependencies.thiserror]
version = "1"

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

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

[dependencies.tracing]
version = "0.1"

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

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