# 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 = "2021"
name = "m1nd-core"
version = "1.0.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Core graph engine and reasoning primitives for m1nd."
readme = false
license = "MIT"
repository = "https://github.com/maxkle1nz/m1nd"

[package.metadata.m1nd]
methodology = "TEMPONIZER + RUN Technology (EMCA)"
boot_file = ".m1nd/boot/temponizer.json"

[package.metadata.m1nd.modules.git_history]
classification = "IGNITION"
primitives = [
    "temporal::CoChangeMatrix",
    "git log",
]
pattern = "Parse → Feed existing matrix → Detect ghost edges"

[package.metadata.m1nd.modules.taint]
classification = "WIRING"
primitives = [
    "flow::FlowEngine",
    "epidemic::EpidemicEngine",
]
pattern = "Compose flow + epidemic → Cross-ref vs security boundaries"

[package.metadata.m1nd.modules.twins]
classification = "WIRING"
primitives = [
    "topology (degree distribution)",
    "cosine_similarity",
]
pattern = "Compute signature vectors → Pairwise cosine → Threshold filter"

[package.metadata.m1nd.modules.refactor]
classification = "HARDENING"
primitives = [
    "topology::CommunityDetector",
    "topology::BridgeDetector",
    "counterfactual::CounterfactualEngine",
]
pattern = "Detect communities → Find bridges → Simulate extraction → Score risk"

[package.metadata.m1nd.modules.runtime_overlay]
classification = "HARDENING"
primitives = [
    "graph::Graph (activation arrays)",
    "temporal::TemporalDecayScorer",
]
pattern = "Ingest OTel spans → Map to nodes → Accumulate heat → Boost activation"

[features]
default = []
embed = ["dep:model2vec-rs"]

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[dependencies.bincode]
version = "1.3"

[dependencies.model2vec-rs]
version = "0.2.1"
features = [
    "fancy-regex",
    "hf-hub",
]
optional = true
default-features = false

[dependencies.parking_lot]
version = "0.12"

[dependencies.rayon]
version = "1.10"

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

[dependencies.serde_json]
version = "1"

[dependencies.smallvec]
version = "1.13"
features = ["serde"]

[dependencies.static_assertions]
version = "1"

[dependencies.thiserror]
version = "2"

[dev-dependencies.cargo_metadata]
version = "0.23"

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