# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
name = "mnemonist-core"
version = "0.9.0"
authors = ["urmzd"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Core types and operations for mnemonist — the open standard for AI agent memory"
homepage = "https://github.com/urmzd/mnemonist"
readme = "README.md"
keywords = [
    "ai",
    "memory",
    "agent",
    "llm",
]
categories = ["development-tools"]
license = "Apache-2.0"
repository = "https://github.com/urmzd/mnemonist"
resolver = "2"

[features]
accelerate = [
    "candle",
    "candle-core/accelerate",
]
ann = ["dep:ignore"]
bench-cli = [
    "dep:clap",
    "evals",
    "candle",
]
candle = [
    "dep:candle-core",
    "dep:candle-nn",
    "dep:candle-transformers",
    "dep:tokenizers",
    "dep:hf-hub",
    "dep:rayon",
]
cuda = [
    "candle",
    "candle-core/cuda",
]
default = [
    "candle",
    "ann",
    "quant",
    "evals",
]
evals = [
    "dep:rand",
    "dep:rand_distr",
    "ann",
    "quant",
]
quant = [
    "dep:rand",
    "dep:rand_distr",
]

[lib]
name = "mnemonist_core"
path = "src/lib.rs"

[[bin]]
name = "mnemonist-bench"
path = "src/evals/bin/bench.rs"
required-features = ["bench-cli"]

[[test]]
name = "validation"
path = "tests/validation.rs"

[[bench]]
name = "ann_benchmarks"
path = "benches/ann_benchmarks.rs"
harness = false
required-features = ["ann"]

[[bench]]
name = "core_benchmarks"
path = "benches/core_benchmarks.rs"
harness = false

[[bench]]
name = "eval_benchmarks"
path = "benches/eval_benchmarks.rs"
harness = false
required-features = ["evals"]

[[bench]]
name = "quant_benchmarks"
path = "benches/quant_benchmarks.rs"
harness = false
required-features = ["quant"]

[dependencies.candle-core]
version = "0.10"
optional = true

[dependencies.candle-nn]
version = "0.10"
optional = true

[dependencies.candle-transformers]
version = "0.10"
optional = true

[dependencies.clap]
version = "4"
features = [
    "derive",
    "env",
]
optional = true

[dependencies.dirs]
version = "6"

[dependencies.hf-hub]
version = "0.4"
features = ["tokio"]
optional = true

[dependencies.ignore]
version = "0.4"
optional = true

[dependencies.rand]
version = "0.9"
optional = true

[dependencies.rand_distr]
version = "0.5"
optional = true

[dependencies.rayon]
version = "1.10"
optional = true

[dependencies.serde]
version = "1"
features = ["derive"]

[dependencies.serde_json]
version = "1"

[dependencies.serde_yaml]
version = "0.9"

[dependencies.thiserror]
version = "2"

[dependencies.tokenizers]
version = "0.21"
features = ["onig"]
optional = true
default-features = false

[dependencies.toml]
version = "0.8"

[dev-dependencies.criterion]
version = "0.5"
features = ["html_reports"]

[dev-dependencies.insta]
version = "1"
features = [
    "json",
    "yaml",
]

[dev-dependencies.tempfile]
version = "3"
