# 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.87"
name = "garudust-platforms"
version = "0.13.4"
authors = ["Garudust"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Chat platform adapters for Garudust agents: Telegram, Discord, Slack, Matrix, LINE, Webhook"
homepage = "https://garudust-org.github.io/garudust-agent/"
readme = false
keywords = [
    "chatbot",
    "telegram",
    "discord",
    "slack",
    "bot",
]
categories = [
    "network-programming",
    "web-programming",
]
license = "MIT"
repository = "https://github.com/garudust-org/garudust-agent"

[package.metadata.cargo-machete]
ignored = ["anyhow"]

[features]
all = [
    "telegram",
    "discord",
    "webhook",
    "slack",
    "matrix",
    "line",
    "whatsapp",
]
default = [
    "telegram",
    "webhook",
]
discord = ["dep:serenity"]
line = [
    "dep:hmac",
    "dep:sha2",
    "dep:base64",
    "dep:axum",
    "dep:dashmap",
    "dep:garudust-memory",
]
matrix = ["dep:matrix-sdk"]
slack = ["dep:tokio-tungstenite"]
telegram = ["dep:teloxide"]
webhook = [
    "dep:axum",
    "dep:hmac",
    "dep:sha2",
    "dep:hex",
    "dep:bytes",
]
whatsapp = [
    "dep:hmac",
    "dep:sha2",
    "dep:hex",
    "dep:axum",
]

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

[dependencies.anyhow]
version = "1"

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

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

[dependencies.base64]
version = "0.22"
optional = true

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

[dependencies.dashmap]
version = "6"
optional = true

[dependencies.futures]
version = "0.3"

[dependencies.garudust-core]
version = "0.13.1"

[dependencies.garudust-memory]
version = "0.13.1"
optional = true

[dependencies.hex]
version = "0.4"
optional = true

[dependencies.hmac]
version = "0.13"
optional = true

[dependencies.matrix-sdk]
version = "0.16"
features = ["rustls-tls"]
optional = true
default-features = false

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

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

[dependencies.serde_json]
version = "1"

[dependencies.serenity]
version = "0.12"
features = [
    "default_no_backend",
    "rustls_backend",
]
optional = true
default-features = false

[dependencies.sha2]
version = "0.11"
optional = true

[dependencies.teloxide]
version = "0.17"
features = [
    "macros",
    "rustls",
    "ctrlc_handler",
]
optional = true
default-features = false

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

[dependencies.tokio-tungstenite]
version = "0.29"
features = ["rustls-tls-webpki-roots"]
optional = true

[dependencies.tracing]
version = "0.1"
