[package]
edition = "2024"
rust-version = "1.95"
name = "swink-agent-memory"
version = "0.14.3"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Session persistence and memory management for swink-agent"
readme = "README.md"
keywords = [
"llm",
"agent",
"memory",
"session",
"context",
]
categories = [
"development-tools",
"data-structures",
]
license = "MIT"
repository = "https://github.com/SuperSwinkAI/Swink-Agent"
resolver = "2"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
"--cfg",
"docsrs",
]
[features]
search = ["dep:tantivy"]
[lib]
name = "swink_agent_memory"
path = "src/lib.rs"
[[test]]
name = "integration"
path = "tests/main.rs"
[dependencies.chrono]
version = "0.4.45"
features = ["serde"]
[dependencies.dirs]
version = "7.0.0"
[dependencies.serde]
version = "1.0.229"
features = [
"derive",
"rc",
]
[dependencies.serde_json]
version = "1.0.151"
[dependencies.swink-agent]
version = "0.14.3"
default-features = false
[dependencies.tantivy]
version = "0.26.1"
optional = true
[dependencies.tokio]
version = "1.53.1"
features = ["rt"]
[dependencies.tracing]
version = "0.1.44"
[dependencies.uuid]
version = "1.24.0"
features = ["v4"]
[dev-dependencies.pretty_assertions]
version = "1.4.1"
[dev-dependencies.tempfile]
version = "3.27.0"
[dev-dependencies.tokio]
version = "1.53.1"
features = [
"full",
"test-util",
]
[dev-dependencies.tracing-subscriber]
version = "0.3.23"
features = ["fmt"]
[lints.clippy]
cast_possible_truncation = "allow"
doc_markdown = "allow"
duration_suboptimal_units = "allow"
exhaustive_enums = "warn"
exhaustive_structs = "warn"
format_push_string = "allow"
items_after_statements = "allow"
manual_let_else = "allow"
missing_const_for_fn = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
option_if_let_else = "allow"
redundant_closure_for_method_calls = "allow"
redundant_pub_crate = "allow"
significant_drop_tightening = "allow"
trivially_copy_pass_by_ref = "allow"
unnecessary_literal_bound = "allow"
[lints.clippy.all]
level = "warn"
priority = -1
[lints.clippy.nursery]
level = "warn"
priority = -1
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.rust]
unsafe_code = "forbid"