# 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 = "shodh-memory"
version = "0.1.2"
authors = ["Shodh Team <29.varuns@gmail.com>"]
build = false
exclude = [
    "mcp-server/",
    "python/",
    "test_memory_db/",
    "shodh_memory_data/",
    "*.exe",
    "*.tar.gz",
    "*.dll",
    "job_log.txt",
    "macos_log.txt",
    ".mcp.json",
    "nul",
    "install_bun.ps1",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Cognitive memory system for AI agents - Hebbian learning, activation decay, semantic consolidation in a single binary"
homepage = "https://github.com/varun29ankuS/shodh-memory"
readme = "README.md"
keywords = [
    "memory",
    "ai",
    "llm",
    "embedding",
    "cognitive",
]
categories = [
    "science",
    "database",
    "embedded",
]
license = "Apache-2.0"
repository = "https://github.com/varun29ankuS/shodh-memory"

[features]
default = []
python = [
    "pyo3",
    "numpy",
]
telemetry = [
    "tracing-opentelemetry",
    "opentelemetry",
    "opentelemetry-otlp",
    "opentelemetry_sdk",
]

[lib]
name = "shodh_memory"
crate-type = ["rlib"]
path = "src/lib.rs"

[[bin]]
name = "shodh-memory-server"
path = "src/main.rs"

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

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

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

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

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

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

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

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

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

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

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

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

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

[[bench]]
name = "adaptive_memory_benchmarks"
path = "benches/adaptive_memory_benchmarks.rs"
harness = false

[[bench]]
name = "cognitive_benchmarks"
path = "benches/cognitive_benchmarks.rs"
harness = false

[[bench]]
name = "graph_benchmarks"
path = "benches/graph_benchmarks.rs"
harness = false

[[bench]]
name = "memory_benchmarks"
path = "benches/memory_benchmarks.rs"
harness = false

[dependencies.anyhow]
version = "1.0"

[dependencies.axum]
version = "0.8"
features = ["json"]

[dependencies.base64]
version = "0.22"

[dependencies.bincode]
version = "1.3"

[dependencies.bloomfilter]
version = "1.0"

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

[dependencies.dashmap]
version = "5.5"

[dependencies.dirs]
version = "5.0"

[dependencies.flate2]
version = "1.0"

[dependencies.futures]
version = "0.3"

[dependencies.hex]
version = "0.4"

[dependencies.lazy_static]
version = "1.4"

[dependencies.lru]
version = "0.12"

[dependencies.lz4]
version = "1.24"

[dependencies.memmap2]
version = "0.9"

[dependencies.ndarray]
version = "0.15"

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

[dependencies.opentelemetry]
version = "0.21"
features = ["trace"]
optional = true

[dependencies.opentelemetry-otlp]
version = "0.14"
features = ["trace"]
optional = true

[dependencies.opentelemetry_sdk]
version = "0.21"
features = [
    "trace",
    "rt-tokio",
]
optional = true

[dependencies.ordered-float]
version = "4.0"

[dependencies.ort]
version = "2.0.0-rc.10"
features = [
    "half",
    "load-dynamic",
]
default-features = false

[dependencies.parking_lot]
version = "0.12"

[dependencies.petgraph]
version = "0.8"

[dependencies.prometheus]
version = "0.13"

[dependencies.pyo3]
version = "0.22"
features = [
    "extension-module",
    "abi3-py38",
]
optional = true

[dependencies.rand]
version = "0.8"

[dependencies.regex]
version = "1.10"

[dependencies.rocksdb]
version = "0.22"
features = ["lz4"]
default-features = false

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

[dependencies.serde_json]
version = "1.0"

[dependencies.sha2]
version = "0.10"

[dependencies.tar]
version = "0.4"

[dependencies.thiserror]
version = "1.0"

[dependencies.tokenizers]
version = "0.20"
features = ["onig"]
default-features = false

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

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

[dependencies.tower]
version = "0.4"
features = [
    "limit",
    "buffer",
    "load-shed",
]

[dependencies.tower-http]
version = "0.5"
features = [
    "cors",
    "fs",
]

[dependencies.tower_governor]
version = "0.8"
features = ["axum"]

[dependencies.tracing]
version = "0.1"

[dependencies.tracing-opentelemetry]
version = "0.22"
optional = true

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

[dependencies.ureq]
version = "2.9"
features = ["json"]

[dependencies.uuid]
version = "1.4"
features = [
    "v4",
    "serde",
]

[dependencies.zip]
version = "2.1"
features = ["deflate"]
default-features = false

[dev-dependencies.criterion]
version = "0.5"
features = ["html_reports"]

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

[profile.release]
opt-level = 3
lto = true
codegen-units = 1
panic = "abort"
strip = true
