[package]
edition = "2024"
rust-version = "1.96"
name = "ai-memory"
version = "0.7.0"
authors = ["AlphaOne LLC"]
build = false
include = [
"src/**/*",
"benches/**/*",
"examples/**/*",
"migrations/**/*",
"Cargo.toml",
"Cargo.lock",
"README.md",
"LICENSE",
"CHANGELOG.md",
"PERFORMANCE.md",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "AI-agnostic persistent memory system — MCP server, HTTP API, and CLI for any AI platform"
homepage = "https://alphaonedev.github.io/ai-memory-mcp/"
readme = "README.md"
keywords = [
"mcp",
"ai",
"memory",
"sqlite",
"llm",
]
categories = [
"artificial-intelligence",
"command-line-utilities",
"database",
]
license = "Apache-2.0"
repository = "https://github.com/alphaonedev/ai-memory-mcp"
[package.metadata.binstall]
pkg-url = "{ repo }/releases/download/v{ version }/ai-memory-{ target }.tar.gz"
bin-dir = "ai-memory"
pkg-fmt = "tgz"
[features]
default = ["sqlite-bundled"]
e2e = []
sal = [
"dep:async-trait",
"dep:bitflags",
"dep:thiserror",
]
sal-postgres = [
"sal",
"dep:sqlx",
"dep:pgvector",
]
sqlcipher = ["rusqlite/bundled-sqlcipher-vendored-openssl"]
sqlite-bundled = ["rusqlite/bundled"]
test-with-models = []
[lib]
name = "ai_memory"
crate-type = [
"rlib",
"staticlib",
"cdylib",
]
path = "src/lib.rs"
[[bin]]
name = "ai-memory"
path = "src/main.rs"
[[example]]
name = "atomise_roundtrip"
path = "examples/atomise_roundtrip.rs"
[[example]]
name = "attest_sign"
path = "examples/attest_sign.rs"
[[example]]
name = "attest_sign_batch"
path = "examples/attest_sign_batch.rs"
[[example]]
name = "fed_issue"
path = "examples/fed_issue.rs"
[[example]]
name = "gen_tls_fixtures"
path = "examples/gen_tls_fixtures.rs"
[[example]]
name = "multistep_ingest_roundtrip"
path = "examples/multistep_ingest_roundtrip.rs"
[[example]]
name = "offload_roundtrip"
path = "examples/offload_roundtrip.rs"
[[bench]]
name = "age_vs_cte"
path = "benches/age_vs_cte.rs"
harness = false
[[bench]]
name = "harness_bench"
path = "benches/harness_bench.rs"
harness = false
[[bench]]
name = "hnsw_rebuild_async"
path = "benches/hnsw_rebuild_async.rs"
harness = false
[[bench]]
name = "longmemeval_reflection"
path = "benches/longmemeval_reflection.rs"
harness = false
required-features = ["sal"]
[[bench]]
name = "recall"
path = "benches/recall.rs"
harness = false
[[bench]]
name = "reflect"
path = "benches/reflect.rs"
harness = false
[[bench]]
name = "reranker_throughput"
path = "benches/reranker_throughput.rs"
harness = false
[dependencies.anyhow]
version = "1"
[dependencies.async-trait]
version = "0.1"
optional = true
[dependencies.axum]
version = "0.8"
features = ["json"]
[dependencies.axum-server]
version = "0.8"
features = ["tls-rustls"]
[dependencies.base64]
version = "0.22"
[dependencies.bitflags]
version = "2"
optional = true
[dependencies.candle-core]
version = "0.10"
[dependencies.candle-nn]
version = "0.10"
[dependencies.candle-transformers]
version = "0.10"
[dependencies.chacha20poly1305]
version = "0.10"
[dependencies.chrono]
version = "0.4"
features = [
"clock",
"serde",
]
[dependencies.ciborium]
version = "0.2"
[dependencies.clap]
version = "4"
features = [
"derive",
"env",
]
[dependencies.clap_complete]
version = "4"
[dependencies.clap_mangen]
version = "0.2"
[dependencies.dirs]
version = "6"
[dependencies.ed25519-dalek]
version = "2"
features = ["rand_core"]
[dependencies.futures-core]
version = "0.3"
[dependencies.gethostname]
version = "0.5"
[dependencies.hex]
version = "0.4"
[dependencies.hf-hub]
version = "0.5"
features = [
"tokio",
"ureq",
"rustls-tls",
]
default-features = false
[dependencies.hkdf]
version = "0.12"
[dependencies.instant-distance]
version = "0.6"
[dependencies.pgvector]
version = "0.4"
features = ["sqlx"]
optional = true
[dependencies.prometheus]
version = "0.13"
default-features = false
[dependencies.rand_core]
version = "0.6"
features = ["std"]
[dependencies.reqwest]
version = "0.12"
features = [
"blocking",
"json",
"rustls-tls",
]
default-features = false
[dependencies.rusqlite]
version = "0.32"
[dependencies.rustls]
version = "0.23"
features = ["ring"]
[dependencies.schemars]
version = "0.8"
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.serde_json]
version = "1"
[dependencies.serde_yaml]
version = "0.9"
[dependencies.sha2]
version = "0.10"
[dependencies.sqlx]
version = "0.8"
features = [
"runtime-tokio-rustls",
"postgres",
"chrono",
"uuid",
"json",
"macros",
]
optional = true
default-features = false
[dependencies.subtle]
version = "2"
[dependencies.tempfile]
version = "3"
[dependencies.thiserror]
version = "2"
optional = true
[dependencies.tiktoken-rs]
version = "0.7"
[dependencies.tokenizers]
version = "0.22"
[dependencies.tokio]
version = "1"
features = ["full"]
[dependencies.tokio-stream]
version = "0.1"
features = ["sync"]
[dependencies.toml]
version = "0.8"
[dependencies.tower-http]
version = "0.6"
features = [
"cors",
"trace",
"compression-gzip",
]
[dependencies.tracing]
version = "0.1"
[dependencies.tracing-appender]
version = "0.2"
[dependencies.tracing-subscriber]
version = "0.3"
features = [
"env-filter",
"fmt",
"json",
]
[dependencies.uuid]
version = "1"
features = [
"v4",
"v7",
]
[dependencies.x25519-dalek]
version = "2"
features = ["static_secrets"]
[dependencies.zeroize]
version = "1"
features = ["derive"]
[dependencies.zstd]
version = "0.13"
default-features = false
[dev-dependencies.assert_cmd]
version = "2"
[dev-dependencies.criterion]
version = "0.5"
features = ["html_reports"]
[dev-dependencies.http-body-util]
version = "0.1"
[dev-dependencies.predicates]
version = "3"
[dev-dependencies.proptest]
version = "1"
[dev-dependencies.rcgen]
version = "=0.14.7"
features = [
"pem",
"ring",
]
default-features = false
[dev-dependencies.rusqlite]
version = "0.32"
features = ["trace"]
[dev-dependencies.serde_json]
version = "1"
[dev-dependencies.sqlx]
version = "0.8"
features = [
"runtime-tokio-rustls",
"postgres",
"chrono",
]
default-features = false
[dev-dependencies.tempfile]
version = "3"
[dev-dependencies.tokio]
version = "1"
features = [
"full",
"test-util",
]
[dev-dependencies.tower]
version = "0.5"
features = ["util"]
[dev-dependencies.uuid]
version = "1"
features = [
"v4",
"v7",
]
[dev-dependencies.wiremock]
version = "0.6"
[target."cfg(unix)".dependencies.libc]
version = "0.2"
[target."cfg(unix)".dev-dependencies.libc]
version = "0.2"
[lints.clippy.too_many_lines]
level = "warn"
priority = -1
[profile.coverage]
lto = false
codegen-units = 16
debug = 1
incremental = false
inherits = "dev"
[profile.release]
opt-level = 3
lto = "fat"
codegen-units = 1
strip = true