[package]
edition = "2021"
rust-version = "1.94"
name = "mnemo-engine"
version = "0.18.1"
build = "build.rs"
exclude = [
"tests/",
"benches/*",
"!benches/corpus.rs",
"fuzz/",
"bindings/",
"examples/gen_*",
"examples/device_budget.rs",
"examples/fmt9_proto.rs",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Encrypted, single-file, portable agent memory engine with multi-signal recall, sessions, snapshots, and an IVF+PQ index"
homepage = "https://toarchkumar.github.io/mnemo/"
documentation = "https://docs.rs/mnemo-engine"
readme = "README.md"
keywords = [
"database",
"encryption",
"vector",
"ai",
"memory",
]
categories = [
"database",
"cryptography",
"command-line-utilities",
]
license = "Apache-2.0"
repository = "https://github.com/toarchkumar/mnemo"
[package.metadata.binstall]
pkg-url = "{ repo }/releases/download/v{ version }/mnemo-v{ version }-{ target }{ binary-ext }"
pkg-fmt = "bin"
[features]
benches = ["dep:criterion"]
dev-hooks = []
embed-candle = [
"dep:candle-core",
"dep:candle-nn",
"dep:candle-transformers",
"dep:tokenizers",
"dep:ureq",
]
failpoints = []
fmt9_proto = ["dep:lz4_flex"]
keychain = [
"dep:keyring-core",
"dep:apple-native-keyring-store",
"dep:windows-native-keyring-store",
"dep:dbus-secret-service-keyring-store",
]
mimalloc_bench = ["dep:mimalloc"]
[lib]
name = "mnemo_engine"
path = "src/lib.rs"
[[bin]]
name = "mnemo"
path = "src/bin/mnemo.rs"
[[example]]
name = "ann_defaults_v0_6_0"
path = "examples/ann_defaults_v0_6_0.rs"
[[example]]
name = "ann_diagnose"
path = "examples/ann_diagnose.rs"
[[example]]
name = "ann_recall_grid"
path = "examples/ann_recall_grid.rs"
[[example]]
name = "ann_recall_grid_v2"
path = "examples/ann_recall_grid_v2.rs"
[[example]]
name = "candle_hard"
path = "examples/candle_hard.rs"
required-features = ["embed-candle"]
[[example]]
name = "file_size_breakdown"
path = "examples/file_size_breakdown.rs"
[[example]]
name = "open_rss"
path = "examples/open_rss.rs"
[[example]]
name = "quickstart"
path = "examples/quickstart.rs"
[[example]]
name = "ranking_v2"
path = "examples/ranking_v2.rs"
[[example]]
name = "session"
path = "examples/session.rs"
[[example]]
name = "shared_bench"
path = "examples/shared_bench.rs"
[[example]]
name = "thread_profile"
path = "examples/thread_profile.rs"
[dependencies.aes-gcm]
version = "=0.10.3"
[dependencies.argon2]
version = "=0.5.3"
[dependencies.base64ct]
version = "=1.6.0"
[dependencies.candle-core]
version = "=0.11.1"
optional = true
default-features = false
[dependencies.candle-nn]
version = "=0.11.1"
optional = true
default-features = false
[dependencies.candle-transformers]
version = "=0.11.1"
optional = true
default-features = false
[dependencies.clap]
version = "=4.4.18"
features = ["derive"]
[dependencies.criterion]
version = "=0.5.1"
features = ["html_reports"]
optional = true
[dependencies.fs4]
version = "=0.9.1"
features = ["sync"]
default-features = false
[dependencies.lz4_flex]
version = "=0.11.6"
features = [
"std",
"safe-encode",
"safe-decode",
]
optional = true
default-features = false
[dependencies.mimalloc]
version = "=0.1.43"
optional = true
default-features = false
[dependencies.rand]
version = "=0.8.6"
[dependencies.rmp]
version = "=0.8.14"
[dependencies.rmp-serde]
version = "=1.3.0"
[dependencies.rpassword]
version = "=7.3.1"
[dependencies.same-file]
version = "=1.0.6"
[dependencies.serde]
version = "=1.0.210"
features = ["derive"]
[dependencies.serde_json]
version = "=1.0.128"
features = ["raw_value"]
[dependencies.sha2]
version = "=0.10.8"
[dependencies.thiserror]
version = "=1.0.64"
[dependencies.tokenizers]
version = "=0.23.2"
features = ["fancy-regex"]
optional = true
default-features = false
[dependencies.ulid]
version = "=1.1.3"
features = ["serde"]
[dependencies.unicode-segmentation]
version = "=1.12.0"
[dependencies.ureq]
version = "=3.5.2"
features = ["rustls"]
optional = true
default-features = false
[dependencies.zeroize]
version = "=1.8.1"
[dependencies.zstd]
version = "=0.13.4"
default-features = false
[dev-dependencies.proptest]
version = "=1.5.0"
[dev-dependencies.tempfile]
version = "=3.10.1"
[target.'cfg(target_os = "linux")'.dependencies.dbus-secret-service-keyring-store]
version = "=1.0.1"
features = [
"crypto-rust",
"vendored",
]
optional = true
[target.'cfg(target_os = "linux")'.dependencies.keyring-core]
version = "=1.0.1"
optional = true
[target.'cfg(target_os = "macos")'.dependencies.apple-native-keyring-store]
version = "=1.0.2"
features = ["keychain"]
optional = true
[target.'cfg(target_os = "macos")'.dependencies.keyring-core]
version = "=1.0.1"
optional = true
[target.'cfg(target_os = "macos")'.dev-dependencies.keyring]
version = "=3.6.3"
features = ["apple-native"]
default-features = false
[target."cfg(unix)".dependencies.rustix]
version = "=0.38.44"
features = [
"std",
"fs",
"process",
]
default-features = false
[target."cfg(windows)".dependencies.keyring-core]
version = "=1.0.1"
optional = true
[target."cfg(windows)".dependencies.windows-native-keyring-store]
version = "=1.1.0"
optional = true
default-features = false
[target."cfg(windows)".dev-dependencies.keyring]
version = "=3.6.3"
features = ["windows-native"]
default-features = false
[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = [
"cfg(aes_armv8)",
"cfg(polyval_armv8)",
]
[profile.release]
lto = true
codegen-units = 1
strip = "symbols"
[profile.release.package.mnemo-uniffi]
strip = "none"