# 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 = "memd"
version = "1.2.1"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Local memory CLI for AI agents with hybrid retrieval"
homepage = "https://fmschulz.github.io/memd/"
documentation = "https://docs.rs/memd"
readme = "README.md"
keywords = [
    "memory",
    "cli",
    "agents",
    "retrieval",
]
categories = [
    "command-line-utilities",
    "development-tools",
]
license = "MIT"
repository = "https://github.com/fmschulz/memd"

[features]
cross-encoder-reranker = [
    "dep:ort",
    "dep:ndarray",
    "dep:flate2",
    "dep:tar",
]
default = []
live-llm = []
test-support = []

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[dependencies.anndists]
version = "0.1"

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

[dependencies.bincode]
version = "2"
features = ["serde"]

[dependencies.byteorder]
version = "1.5"

[dependencies.candle-core]
version = "0.8"

[dependencies.candle-nn]
version = "0.8"

[dependencies.candle-transformers]
version = "0.8"

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

[dependencies.crc32fast]
version = "1.4"

[dependencies.dirs]
version = "5.0"

[dependencies.flate2]
version = "1.0"
optional = true

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

[dependencies.half]
version = "2.4"
features = ["serde"]

[dependencies.hnsw_rs]
version = "0.3"

[dependencies.memmap2]
version = "0.9"

[dependencies.moka]
version = "0.12"
features = ["sync"]

[dependencies.ndarray]
version = "0.17"
optional = true

[dependencies.ort]
version = "2.0.0-rc.11"
features = [
    "std",
    "ndarray",
    "load-dynamic",
    "download-binaries",
    "tls-native",
]
optional = true
default-features = false

[dependencies.parking_lot]
version = "0.12"

[dependencies.regex]
version = "1.10"

[dependencies.roaring]
version = "0.11"

[dependencies.rusqlite]
version = "0.38"
features = ["bundled"]

[dependencies.rust-stemmers]
version = "1.2"

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

[dependencies.serde_json]
version = "1.0"

[dependencies.sha2]
version = "0.10"

[dependencies.streaming-iterator]
version = "0.1"

[dependencies.tantivy]
version = "0.24"

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

[dependencies.thiserror]
version = "2.0"

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

[dependencies.tokio]
version = "1.0"
features = [
    "macros",
    "rt-multi-thread",
    "time",
    "sync",
    "net",
    "io-util",
    "process",
]

[dependencies.toml]
version = "0.8"

[dependencies.tracing]
version = "0.1"

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

[dependencies.tree-sitter]
version = "0.25"

[dependencies.tree-sitter-cpp]
version = "0.23"

[dependencies.tree-sitter-go]
version = "0.25"

[dependencies.tree-sitter-java]
version = "0.23"

[dependencies.tree-sitter-javascript]
version = "0.23"

[dependencies.tree-sitter-python]
version = "0.25"

[dependencies.tree-sitter-rust]
version = "0.24"

[dependencies.tree-sitter-typescript]
version = "0.23"

[dependencies.unicode-segmentation]
version = "1.12"

[dependencies.ureq]
version = "2.10"

[dependencies.uuid]
version = "1.0"
features = [
    "v7",
    "serde",
]

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

[dev-dependencies.rusqlite]
version = "0.38"
features = ["bundled"]

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

[target."cfg(unix)".dependencies.libc]
version = "0.2"
