# 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 = "aidaemon"
version = "0.9.5"
build = false
exclude = [
    "*.db",
    "*.db-shm",
    "*.db-wal",
    ".env",
    "config.toml",
    "lcov.info",
    "*.profraw",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A personal AI agent that runs as a background daemon, accessible via Telegram, Slack, or Discord, with tool use, MCP integration, and persistent memory"
homepage = "https://aidaemon.ai/"
documentation = "https://docs.aidaemon.ai/"
readme = "README.md"
keywords = [
    "ai",
    "daemon",
    "telegram",
    "llm",
    "mcp",
]
categories = ["command-line-utilities"]
license = "MIT"
repository = "https://github.com/davo20019/aidaemon"

[package.metadata.binstall]
pkg-url = "{ repo }/releases/download/v{ version }/aidaemon-{ target }{ archive-suffix }"
pkg-fmt = "tgz"

[package.metadata.binstall.overrides.x86_64-unknown-linux-gnu]
pkg-url = "{ repo }/releases/download/v{ version }/aidaemon-linux-x86_64.tar.gz"

[package.metadata.binstall.overrides.aarch64-unknown-linux-gnu]
pkg-url = "{ repo }/releases/download/v{ version }/aidaemon-linux-aarch64.tar.gz"

[package.metadata.binstall.overrides.x86_64-apple-darwin]
pkg-url = "{ repo }/releases/download/v{ version }/aidaemon-macos-x86_64.tar.gz"

[package.metadata.binstall.overrides.aarch64-apple-darwin]
pkg-url = "{ repo }/releases/download/v{ version }/aidaemon-macos-aarch64.tar.gz"

[features]
browser = ["dep:chromiumoxide"]
default = [
    "discord",
    "slack",
    "encryption",
    "browser",
]
discord = ["dep:serenity"]
encryption = ["libsqlite3-sys/bundled-sqlcipher"]
slack = ["dep:tokio-tungstenite"]

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

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

[[bin]]
name = "db_probe"
path = "src/bin/db_probe.rs"

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

[dependencies.anyhow]
version = "1"

[dependencies.async-imap]
version = "0.10"

[dependencies.async-native-tls]
version = "0.5"

[dependencies.async-std]
version = "1"
features = ["attributes"]

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

[dependencies.axum]
version = "0.8"

[dependencies.base64]
version = "0.22"

[dependencies.chromiumoxide]
version = "0.8"
features = ["tokio-runtime"]
optional = true
default-features = false

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

[dependencies.croner]
version = "3"

[dependencies.dialoguer]
version = "0.11"

[dependencies.dirs]
version = "6"

[dependencies.dotenvy]
version = "0.15"

[dependencies.fastembed]
version = "4"

[dependencies.futures]
version = "0.3"

[dependencies.hmac]
version = "0.12"

[dependencies.htmd]
version = "0.1"

[dependencies.libc]
version = "0.2"

[dependencies.libsqlite3-sys]
version = "0.30"
optional = true

[dependencies.llm_readability]
version = "0.0"

[dependencies.once_cell]
version = "1"

[dependencies.rand]
version = "0.8"

[dependencies.regex]
version = "1"

[dependencies.reqwest]
version = "0.12"
features = [
    "json",
    "blocking",
    "gzip",
    "deflate",
    "brotli",
]

[dependencies.self_update]
version = "0.42"
features = [
    "archive-tar",
    "compression-flate2",
]
default-features = false

[dependencies.semver]
version = "1"

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

[dependencies.serde_json]
version = "1"

[dependencies.serenity]
version = "0.12"
features = [
    "client",
    "gateway",
    "model",
    "cache",
    "rustls_backend",
]
optional = true
default-features = false

[dependencies.sha1]
version = "0.10"

[dependencies.sha2]
version = "0.10"

[dependencies.shell-words]
version = "1.1"

[dependencies.shellexpand]
version = "3"

[dependencies.sqlx]
version = "0.8"
features = [
    "runtime-tokio",
    "sqlite",
]

[dependencies.teloxide]
version = "0.17"
features = ["macros"]

[dependencies.thiserror]
version = "2"

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

[dependencies.tokio-tungstenite]
version = "0.24"
features = ["native-tls"]
optional = true

[dependencies.tokio-util]
version = "0.7.18"

[dependencies.toml]
version = "0.8"

[dependencies.tracing]
version = "0.1"

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

[dependencies.uuid]
version = "1"
features = ["v4"]

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

[dev-dependencies.assert_cmd]
version = "2"

[dev-dependencies.insta]
version = "1"
features = ["yaml"]

[dev-dependencies.proptest]
version = "1"

[dev-dependencies.tempfile]
version = "3"

[target.'cfg(target_os = "linux")'.dependencies.keyring]
version = "3"
features = [
    "sync-secret-service",
    "crypto-rust",
]

[target.'cfg(target_os = "linux")'.dependencies.tikv-jemallocator]
version = "0.6"

[target.'cfg(target_os = "macos")'.dependencies.keyring]
version = "3"
features = ["apple-native"]

[target.'cfg(target_os = "macos")'.dependencies.tikv-jemallocator]
version = "0.6"

[target.'cfg(target_os = "windows")'.dependencies.keyring]
version = "3"
features = ["windows-native"]

[profile.release]
lto = true
codegen-units = 1
strip = true
