[package]
edition = "2024"
rust-version = "1.85"
name = "csm-memory"
version = "0.3.8"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Concept store and singularity engine for chaotic_semantic_memory"
readme = false
license = "MIT"
repository = "https://github.com/d-o-hub/chaotic_semantic_memory"
[features]
ann-hnsw = [
"dep:hnsw_rs",
"dep:tempfile",
"dep:bincode",
]
ann-lsh = [
"dep:bincode",
"dep:rand",
"dep:rand_chacha",
]
default = []
parallel = ["csm-core-lib/parallel"]
[lib]
name = "csm_memory"
crate-type = ["lib"]
path = "src/lib.rs"
[dependencies.bincode]
version = "1.3.3"
optional = true
[dependencies.csm-core-lib]
version = "0.3.8"
[dependencies.hnsw_rs]
version = "0.3.4"
optional = true
[dependencies.rand]
version = "0.10.1"
optional = true
[dependencies.rand_chacha]
version = "0.10.0"
optional = true
[dependencies.serde]
version = "1.0.219"
features = ["derive"]
[dependencies.serde_json]
version = "1.0.150"
[dependencies.tempfile]
version = "3.16.0"
optional = true
[dependencies.thiserror]
version = "2.0.11"
[dependencies.tokio]
version = "1.43.0"
[dependencies.tracing]
version = "0.1.41"
[dependencies.uuid]
version = "1.23.2"
features = [
"v4",
"serde",
]
optional = true
[dev-dependencies.tokio]
version = "1.43.0"
features = [
"macros",
"rt-multi-thread",
]
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.rayon]
version = "1.10"
[target.'cfg(target_arch = "wasm32")'.dependencies.js-sys]
version = "0.3.77"
[lints.clippy]
cast_possible_truncation = "warn"
cast_precision_loss = "warn"
cognitive_complexity = "allow"
expect_used = "warn"
float_cmp = "warn"
many_single_char_names = "allow"
map_unwrap_or = "warn"
missing_const_for_fn = "warn"
missing_errors_doc = "allow"
must_use_candidate = "allow"
needless_range_loop = "allow"
panic = "warn"
print_stderr = "allow"
print_stdout = "allow"
redundant_clone = "warn"
significant_drop_tightening = "warn"
too_many_arguments = "allow"
type_complexity = "allow"
unnecessary_map_or = "warn"
unwrap_used = "warn"
[lints.clippy.all]
level = "warn"
priority = -1
[lints.clippy.nursery]
level = "allow"
priority = -1
[lints.clippy.pedantic]
level = "allow"
priority = -1
[lints.rust]
dead_code = "allow"
missing_docs = "allow"
unsafe_code = "allow"
[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = ['cfg(feature, values("rerank-cross"))']