[package]
edition = "2021"
name = "engram-core"
version = "0.15.0"
authors = ["Ronaldo Lima"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "AI Memory Infrastructure - Persistent memory for AI agents with semantic search"
homepage = "https://github.com/limaronaldo/engram"
documentation = "https://docs.rs/engram-core"
readme = "README.md"
keywords = [
"ai",
"memory",
"mcp",
"semantic-search",
"sqlite",
]
categories = [
"database",
"text-processing",
]
license = "MIT"
repository = "https://github.com/limaronaldo/engram"
[features]
advanced-graph = []
agent-portability = [
"dep:zip",
"dep:ed25519-dalek",
"dep:aes-gcm",
]
agentic-evolution = []
autonomous-agent = [
"compression",
"agentic-evolution",
"advanced-graph",
]
cloud = [
"dep:aws-sdk-s3",
"dep:aws-config",
"dep:aes-gcm",
]
cohere = []
compression = []
context-engineering = []
default = [
"cloud",
"openai",
]
duckdb-graph = ["dep:duckdb"]
emergent-graph = []
full = [
"cloud",
"openai",
"pdf",
"langfuse",
"turso",
"meilisearch",
"watcher",
"multimodal",
"emergent-graph",
"ollama",
"cohere",
"voyage",
"onnx-embed",
"neural-rerank",
"retrieval-excellence",
"context-engineering",
"temporal-graph",
"duckdb-graph",
"compression",
"agentic-evolution",
"advanced-graph",
"autonomous-agent",
"agent-portability",
]
langfuse = ["dep:reqwest"]
meilisearch = ["dep:meilisearch-sdk"]
multimodal = [
"dep:reqwest",
"dep:async-trait",
]
neural-rerank = [
"dep:ort",
"dep:ndarray",
]
ollama = []
onnx-embed = [
"dep:ort",
"dep:ndarray",
]
openai = ["dep:reqwest"]
pdf = ["dep:pdf-extract"]
retrieval-excellence = []
temporal-graph = []
turso = ["dep:libsql"]
voyage = []
watcher = [
"dep:toml",
"dep:tempfile",
"dep:notify",
"dep:reqwest",
]
[lib]
name = "engram"
path = "src/lib.rs"
[[bin]]
name = "engram-agent"
path = "src/bin/agent.rs"
[[bin]]
name = "engram-bench"
path = "src/bin/bench.rs"
[[bin]]
name = "engram-cli"
path = "src/bin/cli.rs"
[[bin]]
name = "engram-core"
path = "src/main.rs"
[[bin]]
name = "engram-server"
path = "src/bin/server.rs"
[[bin]]
name = "engram-watcher"
path = "src/bin/watcher.rs"
required-features = ["watcher"]
[[test]]
name = "duckdb_graph_tests"
path = "tests/duckdb_graph_tests.rs"
[[test]]
name = "golden_tests"
path = "tests/golden_tests.rs"
[[test]]
name = "mcp_protocol_tests"
path = "tests/mcp_protocol_tests.rs"
[[test]]
name = "property_tests"
path = "tests/property_tests.rs"
[[test]]
name = "turso_backend_tests"
path = "tests/turso_backend_tests.rs"
[[test]]
name = "v070_integration_tests"
path = "tests/v070_integration_tests.rs"
[[test]]
name = "watcher_integration"
path = "tests/watcher_integration.rs"
[[bench]]
name = "community_detection"
path = "benches/community_detection.rs"
harness = false
[[bench]]
name = "entity_extraction"
path = "benches/entity_extraction.rs"
harness = false
[[bench]]
name = "mcp_dispatch"
path = "benches/mcp_dispatch.rs"
harness = false
[[bench]]
name = "memory_ops"
path = "benches/memory_ops.rs"
harness = false
[[bench]]
name = "search"
path = "benches/search.rs"
harness = false
[[bench]]
name = "traversal"
path = "benches/traversal.rs"
harness = false
[dependencies.aes-gcm]
version = "0.10"
optional = true
[dependencies.anyhow]
version = "1.0"
[dependencies.async-channel]
version = "2.1"
[dependencies.async-trait]
version = "0.1"
optional = true
[dependencies.aws-config]
version = "1.1"
optional = true
[dependencies.aws-sdk-s3]
version = "1.12"
optional = true
[dependencies.axum]
version = "0.7"
features = ["ws"]
[dependencies.base64]
version = "0.21"
[dependencies.chrono]
version = "0.4"
features = ["serde"]
[dependencies.clap]
version = "4.4"
features = [
"derive",
"env",
]
[dependencies.dashmap]
version = "5.5"
[dependencies.deadpool-sqlite]
version = "0.8"
[dependencies.dirs]
version = "5.0"
[dependencies.duckdb]
version = "1.4"
features = [
"bundled",
"chrono",
]
optional = true
[dependencies.ed25519-dalek]
version = "2.1"
features = ["rand_core"]
optional = true
[dependencies.futures]
version = "0.3"
[dependencies.hex]
version = "0.4"
[dependencies.jsonrpc-core]
version = "18.0"
[dependencies.levenshtein]
version = "1.0"
[dependencies.libsql]
version = "0.6"
features = [
"core",
"replication",
"remote",
]
optional = true
[dependencies.meilisearch-sdk]
version = "0.32.0"
optional = true
[dependencies.ndarray]
version = "0.16"
optional = true
[dependencies.notify]
version = "7"
optional = true
[dependencies.once_cell]
version = "1.19"
[dependencies.ort]
version = "2.0.0-rc.12"
optional = true
[dependencies.parking_lot]
version = "0.12"
[dependencies.pdf-extract]
version = "0.7"
optional = true
[dependencies.pulldown-cmark]
version = "0.10"
[dependencies.rand]
version = "0.8"
[dependencies.regex]
version = "1.10"
[dependencies.reqwest]
version = "0.12"
features = [
"json",
"rustls-tls",
"multipart",
]
optional = true
default-features = false
[dependencies.rusqlite]
version = "0.31"
features = [
"bundled",
"vtab",
"functions",
"trace",
]
[dependencies.serde]
version = "1.0"
features = ["derive"]
[dependencies.serde_json]
version = "1.0"
[dependencies.sha2]
version = "0.10"
[dependencies.shellexpand]
version = "3.1"
[dependencies.sqlite-vec]
version = "0.1"
[dependencies.tempfile]
version = "3.9"
optional = true
[dependencies.thiserror]
version = "1.0"
[dependencies.tiktoken-rs]
version = "0.5"
[dependencies.tokio]
version = "1.35"
features = ["full"]
[dependencies.tokio-stream]
version = "0.1"
features = ["sync"]
[dependencies.toml]
version = "0.8"
optional = true
[dependencies.tower]
version = "0.4"
[dependencies.tower-http]
version = "0.5"
features = [
"cors",
"trace",
]
[dependencies.tracing]
version = "0.1"
[dependencies.tracing-subscriber]
version = "0.3"
features = [
"env-filter",
"json",
]
[dependencies.uuid]
version = "1.6"
features = [
"v4",
"serde",
]
[dependencies.zip]
version = "2.0"
features = ["deflate"]
optional = true
default-features = false
[dev-dependencies.criterion]
version = "0.5"
features = ["html_reports"]
[dev-dependencies.fake]
version = "2.9"
features = ["derive"]
[dev-dependencies.pretty_assertions]
version = "1.4"
[dev-dependencies.proptest]
version = "1.4"
[dev-dependencies.tempfile]
version = "3.9"
[dev-dependencies.tokio-test]
version = "0.4"
[profile.bench]
lto = true
codegen-units = 1
[profile.release]
lto = true
codegen-units = 1
panic = "abort"
strip = true