# 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 = "sapphire-agent"
version = "0.3.3"
build = false
exclude = [
    "/.github",
    "/.gitignore",
    "/.claude",
    "/.vscode",
    "/rust-toolchain.toml",
    "/config.example.toml",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A personal AI assistant agent with Matrix/Discord channels, Anthropic backend, and a sapphire-workspace memory layer"
homepage = "https://github.com/fluo10/sapphire-agent"
readme = "README.md"
keywords = [
    "ai",
    "agent",
    "anthropic",
    "matrix",
    "discord",
]
categories = ["command-line-utilities"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/fluo10/sapphire-agent"

[features]
default = [
    "lancedb-store",
    "fastembed-embed",
    "git-sync",
]
fastembed-embed = ["sapphire-workspace/fastembed-embed"]
git-sync = ["sapphire-workspace/git-sync"]
lancedb-store = ["sapphire-workspace/lancedb-store"]

[[bin]]
name = "sapphire-agent"
path = "src/main.rs"

[dependencies.anyhow]
version = "1.0"

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

[dependencies.axum]
version = "0.8"
features = [
    "http1",
    "json",
    "tokio",
]
default-features = false

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

[dependencies.clap]
version = "4.5"
features = ["derive"]

[dependencies.cron]
version = "0.16"

[dependencies.directories]
version = "6.0"

[dependencies.futures-util]
version = "0.3"

[dependencies.grain-id]
version = "0.14"
features = ["serde"]

[dependencies.matrix-sdk]
version = "0.16"
features = [
    "e2e-encryption",
    "rustls-tls",
    "sqlite",
    "bundled-sqlite",
    "markdown",
]
default-features = false

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

[dependencies.sapphire-agent-api]
version = "0.3.3"

[dependencies.sapphire-workspace]
version = "0.8.1"
default-features = false

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

[dependencies.serde_json]
version = "1.0"

[dependencies.serde_yaml]
version = "0.9"

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

[dependencies.shellexpand]
version = "3.1"

[dependencies.tokio]
version = "1.50"
features = [
    "rt-multi-thread",
    "macros",
    "time",
    "sync",
    "fs",
    "signal",
    "net",
]
default-features = false

[dependencies.tokio-stream]
version = "0.1"
features = ["sync"]

[dependencies.toml]
version = "1.0"

[dependencies.tower-http]
version = "0.6"
features = ["cors"]
default-features = false

[dependencies.tracing]
version = "0.1"

[dependencies.tracing-subscriber]
version = "0.3"
features = [
    "fmt",
    "ansi",
    "env-filter",
]
default-features = false

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