[package]
edition = "2021"
rust-version = "1.91"
name = "microscope-memory"
version = "1.2.0"
authors = ["Microscope Contributors"]
build = "build.rs"
exclude = [
"layers/*",
"output/*",
".github/*",
"tests/fixtures/*",
"tests/data/*",
"scripts/*",
"tools/*",
"epistemic-core/",
"microscope-hooks/",
"*.txt",
"*.log",
"errors.txt",
"compile_errors.txt",
"test_errors.json",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Pure binary cognitive memory engine with REST API bridge for LLM integration. Zero-JSON core, mmap-based, hierarchical, sub-microsecond search."
homepage = "https://github.com/silentnoisehun/microscope-memory"
readme = "README.md"
keywords = [
"memory",
"llm",
"mmap",
"vector-search",
"api",
]
categories = [
"data-structures",
"algorithms",
"memory-management",
"web-programming",
]
license = "MIT"
repository = "https://github.com/silentnoisehun/microscope-memory"
[package.metadata.wasm-pack.profile.release]
wasm-opt = false
[features]
compression = ["zstd"]
console_error_panic_hook = []
cuda = [
"embeddings",
"candle-core/cuda",
]
default = ["native"]
embeddings = [
"candle-core",
"candle-nn",
"candle-transformers",
"hf-hub",
"tokenizers",
]
gpu = [
"wgpu",
"bytemuck",
"pollster",
"futures",
]
mcp_http = [
"rmcp",
"schemars",
]
native = []
onnx = []
python = ["dep:pyo3"]
wasm = []
[lib]
name = "microscope_memory"
crate-type = [
"rlib",
"cdylib",
]
path = "src/lib.rs"
[[bin]]
name = "microscope-mem"
path = "src/main.rs"
required-features = ["native"]
[[example]]
name = "bench_mcp"
path = "examples/bench_mcp.rs"
[[example]]
name = "bench_recall"
path = "examples/bench_recall.rs"
[[example]]
name = "bench_recall_ab"
path = "examples/bench_recall_ab.rs"
[[example]]
name = "bench_spine"
path = "examples/bench_spine.rs"
[[example]]
name = "bench_spine_publish"
path = "examples/bench_spine_publish.rs"
[[example]]
name = "corpus_diag"
path = "examples/corpus_diag.rs"
[[example]]
name = "index_text"
path = "examples/index_text.rs"
[[example]]
name = "spine_live"
path = "examples/spine_live.rs"
[[test]]
name = "ai_integration"
path = "tests/ai_integration.rs"
[[test]]
name = "append_cache_liveness"
path = "tests/append_cache_liveness.rs"
[[test]]
name = "consciousness_perf"
path = "tests/consciousness_perf.rs"
[[test]]
name = "contains_ci"
path = "tests/contains_ci.rs"
[[test]]
name = "documented_commands"
path = "tests/documented_commands.rs"
[[test]]
name = "enforcement_executor_e2e"
path = "tests/enforcement_executor_e2e.rs"
[[test]]
name = "enforcement_gate"
path = "tests/enforcement_gate.rs"
[[test]]
name = "index_corruption"
path = "tests/index_corruption.rs"
[[test]]
name = "integration"
path = "tests/integration.rs"
[[test]]
name = "mcp_stdio"
path = "tests/mcp_stdio.rs"
[[test]]
name = "relevance_benchmark"
path = "tests/relevance_benchmark.rs"
[[test]]
name = "rest_behaviour"
path = "tests/rest_behaviour.rs"
[[test]]
name = "rest_contract"
path = "tests/rest_contract.rs"
[[test]]
name = "spine_torn_read"
path = "tests/spine_torn_read.rs"
[[bench]]
name = "microscope_bench"
path = "benches/microscope_bench.rs"
harness = false
[dependencies.bincode]
version = "1.3"
[dependencies.blake3]
version = "1.5"
[dependencies.byteorder]
version = "1.5"
[dependencies.epistemic-core]
version = "0.1.0"
[dependencies.getrandom]
version = "0.2"
features = ["js"]
[dependencies.half]
version = ">=2.3, <2.5"
[dependencies.hex]
version = "0.4"
[dependencies.hmac]
version = "0.12"
[dependencies.microscope-hooks]
version = "0.1.0"
[dependencies.parking_lot]
version = "0.12"
[dependencies.rand]
version = "0.8"
[dependencies.serde]
version = "1.0"
features = ["derive"]
[dependencies.serde_json]
version = "1.0"
[dependencies.sha2]
version = "0.10"
[dependencies.thiserror]
version = "1.0"
[dependencies.toml]
version = "0.8"
[dependencies.zstd]
version = "0.13"
optional = true
[dev-dependencies.criterion]
version = "0.5"
[dev-dependencies.serde_json]
version = "1.0"
[dev-dependencies.tempfile]
version = "3.8"
[dev-dependencies.toml]
version = "0.8"
[dev-dependencies.tower]
version = "0.5"
features = ["util"]
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.axum]
version = "0.7"
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.bytemuck]
version = "1.13"
features = ["derive"]
optional = true
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.candle-core]
version = "0.3"
features = []
optional = true
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.candle-nn]
version = "0.3"
optional = true
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.candle-transformers]
version = "0.3"
optional = true
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.clap]
version = "4"
features = ["derive"]
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.colored]
version = "2"
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.futures]
version = "0.3"
optional = true
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.hf-hub]
version = "0.3"
optional = true
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.memmap2]
version = "0.9"
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.pollster]
version = "0.3"
optional = true
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.pyo3]
version = "0.29"
features = ["extension-module"]
optional = true
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.rayon]
version = "1.8"
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.reqwest]
version = "0.12"
features = [
"json",
"rustls-tls",
"blocking",
]
default-features = false
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.rmcp]
version = "3.5"
features = [
"server",
"macros",
"schemars",
"transport-streamable-http-server",
]
optional = true
default-features = false
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.schemars]
version = "1.0"
optional = true
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.tokenizers]
version = "0.15"
optional = true
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.tokio]
version = "1.36"
features = ["full"]
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.tower-http]
version = "0.5"
features = [
"cors",
"trace",
]
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.wgpu]
version = "0.19"
optional = true
[target.'cfg(target_arch = "wasm32")'.dependencies.getrandom]
version = "0.2"
features = ["js"]
[target.'cfg(target_arch = "wasm32")'.dependencies.wasm-bindgen]
version = "0.2"
[target.'cfg(target_arch = "wasm32")'.dependencies.web-sys]
version = "0.3"
features = ["console"]
[target."cfg(windows)".dependencies.windows-sys]
version = "0.52"
features = [
"Win32_System_Memory",
"Win32_System_Threading",
"Win32_Foundation",
"Win32_System_LibraryLoader",
"Win32_System_SystemInformation",
"Win32_System_Registry",
"Win32_System_Console",
"Win32_System_Pipes",
"Win32_Storage_FileSystem",
"Win32_Security",
"Win32_System_IO",
]
[profile.bench]
opt-level = 3
lto = "thin"
codegen-units = 1
strip = false
[profile.dev]
debug = "line-tables-only"
[profile.release]
opt-level = 3
lto = "fat"
codegen-units = 1
panic = "abort"
strip = true