[package]
edition = "2021"
rust-version = "1.75"
name = "semantic-memory"
version = "0.6.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Hybrid semantic search with SQLite, FTS5, and HNSW — built for AI agents"
homepage = "https://www.github.com/recursiveintell/semantic-memory"
readme = "README.md"
keywords = [
"search",
"semantic",
"sqlite",
"hnsw",
"embeddings",
]
categories = [
"database",
"text-processing",
]
license = "Apache-2.0"
repository = "https://www.github.com/recursiveintell/semantic-memory"
[features]
brute-force = []
default = ["hnsw"]
fib-quant-codec = [
"dep:fib-quant",
"dep:scr-runtime-compression",
]
hnsw = ["dep:hnsw_rs"]
per-dim-codec = ["dep:compressed-scorer"]
poly-kv-codec = ["dep:poly-kv"]
testing = []
turbo-quant-codec = [
"dep:turbo-quant",
"dep:quant-governor",
"dep:scr-runtime-compression",
]
[lib]
name = "semantic_memory"
path = "src/lib.rs"
[[example]]
name = "basic_search"
path = "examples/basic_search.rs"
[[example]]
name = "bench_per_dim"
path = "examples/bench_per_dim.rs"
[[example]]
name = "conversation_memory"
path = "examples/conversation_memory.rs"
[[example]]
name = "fib_quant_gen"
path = "examples/fib_quant_gen.rs"
[[example]]
name = "gen_fib_artifacts"
path = "examples/gen_fib_artifacts.rs"
required-features = ["fib-quant-codec"]
[[example]]
name = "gen_per_dim"
path = "examples/gen_per_dim.rs"
required-features = ["per-dim-codec"]
[[example]]
name = "turboquant_benchmark_gate"
path = "examples/turboquant_benchmark_gate.rs"
[[example]]
name = "verify_fib_quant"
path = "examples/verify_fib_quant.rs"
required-features = ["fib-quant-codec"]
[[example]]
name = "verify_per_dim"
path = "examples/verify_per_dim.rs"
required-features = ["per-dim-codec"]
[[example]]
name = "verify_per_dim_fast"
path = "examples/verify_per_dim_fast.rs"
required-features = ["per-dim-codec"]
[[test]]
name = "brute_force_parity"
path = "tests/brute_force_parity.rs"
[[test]]
name = "chunk_manifest_ingest"
path = "tests/chunk_manifest_ingest.rs"
[[test]]
name = "chunker_tests"
path = "tests/chunker_tests.rs"
[[test]]
name = "compaction"
path = "tests/compaction.rs"
[[test]]
name = "concurrent_access"
path = "tests/concurrent_access.rs"
[[test]]
name = "conversation_search_tests"
path = "tests/conversation_search_tests.rs"
[[test]]
name = "conversation_tests"
path = "tests/conversation_tests.rs"
[[test]]
name = "db_tests"
path = "tests/db_tests.rs"
[[test]]
name = "episode_identity"
path = "tests/episode_identity.rs"
[[test]]
name = "hardening_semantics"
path = "tests/hardening_semantics.rs"
[[test]]
name = "hardening_v5"
path = "tests/hardening_v5.rs"
[[test]]
name = "hnsw_hotswap"
path = "tests/hnsw_hotswap.rs"
[[test]]
name = "hnsw_integration"
path = "tests/hnsw_integration.rs"
[[test]]
name = "hnsw_persistence"
path = "tests/hnsw_persistence.rs"
[[test]]
name = "import_boundary_tests"
path = "tests/import_boundary_tests.rs"
[[test]]
name = "import_ugly_cases"
path = "tests/import_ugly_cases.rs"
[[test]]
name = "integration_tests"
path = "tests/integration_tests.rs"
[[test]]
name = "knowledge_tests"
path = "tests/knowledge_tests.rs"
[[test]]
name = "migration_v5"
path = "tests/migration_v5.rs"
[[test]]
name = "projection_v11_tests"
path = "tests/projection_v11_tests.rs"
[[test]]
name = "quantization"
path = "tests/quantization.rs"
[[test]]
name = "quantization_pipeline"
path = "tests/quantization_pipeline.rs"
[[test]]
name = "search_tests"
path = "tests/search_tests.rs"
[[test]]
name = "step3_verification"
path = "tests/step3_verification.rs"
[[test]]
name = "step4_verification"
path = "tests/step4_verification.rs"
[[test]]
name = "storage_lifecycle"
path = "tests/storage_lifecycle.rs"
[[test]]
name = "tokenizer_tests"
path = "tests/tokenizer_tests.rs"
[[test]]
name = "trace_id_write_seam"
path = "tests/trace_id_write_seam.rs"
[[test]]
name = "vector_codec"
path = "tests/vector_codec.rs"
[[test]]
name = "vector_invariants"
path = "tests/vector_invariants.rs"
[[test]]
name = "vector_only_hnsw"
path = "tests/vector_only_hnsw.rs"
[dependencies.bitemporal-runtime]
version = "0.1.0"
[dependencies.boundary-compiler]
version = "0.1.0"
[dependencies.bytemuck]
version = "1"
features = ["derive"]
[dependencies.chrono]
version = "0.4.44"
features = ["serde"]
[dependencies.compressed-scorer]
version = "0.1.0"
optional = true
[dependencies.fib-quant]
version = "0.1.0-alpha.1"
optional = true
[dependencies.forge-memory-bridge]
version = "0.1.1"
[dependencies.hnsw_rs]
version = "0.3"
optional = true
[dependencies.poly-kv]
version = "0.1.0-alpha.1"
optional = true
[dependencies.quant-governor]
version = "0.1.0"
optional = true
[dependencies.reqwest]
version = "0.12"
features = [
"json",
"rustls-tls",
]
default-features = false
[dependencies.rusqlite]
version = "0.32.1"
features = [
"bundled",
"blob",
]
[dependencies.schemars]
version = "0.8.22"
[dependencies.scr-runtime-compression]
version = "0.1.0"
optional = true
[dependencies.serde]
version = "1.0.228"
features = ["derive"]
[dependencies.serde_json]
version = "1.0.149"
[dependencies.stack-ids]
version = "0.1.1"
[dependencies.thiserror]
version = "2.0.18"
[dependencies.tokio]
version = "1.50.0"
features = [
"rt",
"macros",
"sync",
]
[dependencies.tracing]
version = "0.1.44"
[dependencies.turbo-quant]
version = "0.2.0"
optional = true
[dependencies.uuid]
version = "1.22.0"
features = ["v4"]
[dev-dependencies.semantic-memory-forge]
version = "0.1.1"
[dev-dependencies.tempfile]
version = "3.27.0"
[dev-dependencies.tokio]
version = "1.50.0"
features = [
"rt-multi-thread",
"macros",
]
[lints.clippy]
collapsible_if = "allow"
dbg_macro = "deny"
expect_used = "allow"
if_same_then_else = "allow"
incompatible_msrv = "allow"
items_after_test_module = "allow"
needless_lifetimes = "allow"
needless_return = "allow"
redundant_closure = "allow"
suspicious_open_options = "allow"
todo = "deny"
too_many_arguments = "allow"
unimplemented = "deny"
unnecessary_lazy_evaluations = "allow"
[lints.rust]
unsafe_code = "deny"