# 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.90"
name = "sockudo-webhook"
version = "4.2.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Webhook integration for Sockudo"
readme = false
license-file = "LICENSE"
repository = "https://github.com/sockudo/sockudo"

[features]
default = ["local"]
full = ["lambda"]
lambda = [
    "sockudo-core/lambda",
    "dep:aws-config",
    "dep:aws-sdk-lambda",
    "dep:dashmap",
]
local = []

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

[dependencies.ahash]
version = "0.8.12"
features = ["serde"]

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

[dependencies.aws-config]
version = "^1.8.10"
features = [
    "behavior-version-latest",
    "credentials-process",
    "default-https-client",
    "rt-tokio",
    "sso",
]
optional = true
default-features = false

[dependencies.aws-sdk-lambda]
version = "1.104.0"
features = [
    "behavior-version-latest",
    "default-https-client",
    "rt-tokio",
]
optional = true
default-features = false

[dependencies.chrono]
version = "^0.4.42"

[dependencies.dashmap]
version = "^6.1.0"
optional = true

[dependencies.hex]
version = "0.4.3"

[dependencies.hmac]
version = "0.13.0-rc.3"

[dependencies.regex]
version = "1.12.2"

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

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

[dependencies.sha2]
version = "0.11.0-rc.3"

[dependencies.sockudo-core]
version = "4.2.0"

[dependencies.sonic-rs]
version = "0.5.6"

[dependencies.tokio]
version = "^1"
features = [
    "full",
    "tracing",
]

[dependencies.tracing]
version = "0.1"

[dependencies.url]
version = "2.5.7"
features = ["serde"]

[dependencies.uuid]
version = "1.18.1"
features = [
    "v4",
    "fast-rng",
    "macro-diagnostics",
]

[dev-dependencies.futures]
version = "0.3.31"

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