[package]
edition = "2024"
rust-version = "1.91"
name = "hirn-engine"
version = "0.1.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Engine for the hirn cognitive memory database"
readme = "README.md"
license = "Apache-2.0"
resolver = "2"
[features]
anthropic = ["hirn-provider/anthropic"]
cedar = ["hirn-policy/cedar"]
cohere = ["hirn-provider/cohere"]
cross-encoder = ["hirn-provider/cross-encoder"]
default = [
"cedar",
"tiktoken",
]
hf-tokenizer = ["hirn-provider/hf-tokenizer"]
ollama = ["hirn-provider/ollama"]
openai = ["hirn-provider/openai"]
tiktoken = ["hirn-provider/tiktoken"]
voyage = ["hirn-provider/voyage"]
[lib]
name = "hirn_engine"
path = "src/lib.rs"
[[test]]
name = "backup_restore_integration"
path = "tests/backup_restore_integration.rs"
[[test]]
name = "causal_integration"
path = "tests/causal_integration.rs"
[[test]]
name = "cedar_enforcement_integration"
path = "tests/cedar_enforcement_integration.rs"
[[test]]
name = "concurrent_stress"
path = "tests/concurrent_stress.rs"
[[test]]
name = "consolidation_integration"
path = "tests/consolidation_integration.rs"
[[test]]
name = "context_integration"
path = "tests/context_integration.rs"
[[test]]
name = "diagnostics_integration"
path = "tests/diagnostics_integration.rs"
[[test]]
name = "e2e_validation"
path = "tests/e2e_validation.rs"
[[test]]
name = "event_log_integration"
path = "tests/event_log_integration.rs"
[[test]]
name = "fullstack_smoke"
path = "tests/fullstack_smoke.rs"
[[test]]
name = "golden_recall_suite"
path = "tests/golden_recall_suite.rs"
[[test]]
name = "graph_store"
path = "tests/graph_store.rs"
[[test]]
name = "integration"
path = "tests/integration.rs"
[[test]]
name = "metrics_integration"
path = "tests/metrics_integration.rs"
[[test]]
name = "multiagent_integration"
path = "tests/multiagent_integration.rs"
[[test]]
name = "nonsemantic_revision_integration"
path = "tests/nonsemantic_revision_integration.rs"
[[test]]
name = "offline_scheduler_integration"
path = "tests/offline_scheduler_integration.rs"
[[test]]
name = "persistent_graph_integration"
path = "tests/persistent_graph_integration.rs"
[[test]]
name = "pipeline_integration"
path = "tests/pipeline_integration.rs"
[[test]]
name = "procedural_execution"
path = "tests/procedural_execution.rs"
[[test]]
name = "ql_integration"
path = "tests/ql_integration.rs"
[[test]]
name = "runtime_boundary_guard"
path = "tests/runtime_boundary_guard.rs"
[[test]]
name = "security_integration"
path = "tests/security_integration.rs"
[[test]]
name = "semantic_revision_integrity"
path = "tests/semantic_revision_integrity.rs"
[[test]]
name = "service_views"
path = "tests/service_views.rs"
[[test]]
name = "storage_batching_integration"
path = "tests/storage_batching_integration.rs"
[[test]]
name = "storage_integration"
path = "tests/storage_integration.rs"
[[test]]
name = "toolkit_integration"
path = "tests/toolkit_integration.rs"
[[test]]
name = "tracing_integration"
path = "tests/tracing_integration.rs"
[[test]]
name = "write_path_explanation_integration"
path = "tests/write_path_explanation_integration.rs"
[[test]]
name = "write_path_integration"
path = "tests/write_path_integration.rs"
[[bench]]
name = "consolidation_ops"
path = "benches/consolidation_ops.rs"
harness = false
[[bench]]
name = "event_bus"
path = "benches/event_bus.rs"
harness = false
[[bench]]
name = "graph_ops"
path = "benches/graph_ops.rs"
harness = false
[[bench]]
name = "lance_ops"
path = "benches/lance_ops.rs"
harness = false
[[bench]]
name = "ql_ops"
path = "benches/ql_ops.rs"
harness = false
[[bench]]
name = "scaling"
path = "benches/scaling.rs"
harness = false
[[bench]]
name = "semantic_revision_ops"
path = "benches/semantic_revision_ops.rs"
harness = false
[[bench]]
name = "think_assembly"
path = "benches/think_assembly.rs"
harness = false
[dependencies.arrow-array]
version = "57"
[dependencies.arrow-schema]
version = "57"
[dependencies.arrow-select]
version = "57"
[dependencies.async-trait]
version = "0.1"
[dependencies.bincode]
version = "1"
[dependencies.blake3]
version = "1"
[dependencies.chrono]
version = "0.4"
features = ["serde"]
[dependencies.dashmap]
version = "6"
[dependencies.datafusion]
version = "52"
default-features = false
[dependencies.futures]
version = "0.3"
[dependencies.hirn-core]
version = "0.1.0"
[dependencies.hirn-exec]
version = "0.1.0"
[dependencies.hirn-graph]
version = "0.1.0"
[dependencies.hirn-policy]
version = "0.1.0"
features = ["cedar"]
[dependencies.hirn-provider]
version = "0.1.0"
[dependencies.hirn-query]
version = "0.1.0"
[dependencies.hirn-storage]
version = "0.1.0"
[dependencies.lance-linalg]
version = "=4.0.0"
[dependencies.metrics]
version = "0.24"
[dependencies.parking_lot]
version = "0.12"
[dependencies.petgraph]
version = "0.6"
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.serde_json]
version = "1"
features = ["raw_value"]
[dependencies.thiserror]
version = "2"
[dependencies.tokio]
version = "1"
features = ["full"]
[dependencies.toml]
version = "0.8"
[dependencies.tracing]
version = "0.1"
[dependencies.ulid]
version = "1"
features = ["serde"]
[dev-dependencies.criterion]
version = "0.5"
[dev-dependencies.hirn-storage]
version = "0.1.0"
[dev-dependencies.image]
version = "0.25"
features = [
"png",
"jpeg",
"gif",
"webp",
"bmp",
"tiff",
]
default-features = false
[dev-dependencies.metrics-util]
version = "0.19"
[dev-dependencies.proptest]
version = "1"
[dev-dependencies.tempfile]
version = "3"
[dev-dependencies.tokio]
version = "1"
features = ["full"]
[dev-dependencies.tracing-subscriber]
version = "0.3"
features = [
"json",
"env-filter",
"registry",
]
[lints.clippy]
approx_constant = "allow"
await_holding_lock = "allow"
bool_assert_comparison = "allow"
cast_lossless = "allow"
cast_possible_truncation = "allow"
cast_possible_wrap = "allow"
cast_precision_loss = "allow"
cast_sign_loss = "allow"
clone_on_copy = "allow"
cloned_instead_of_copied = "allow"
collapsible_if = "allow"
collection_is_never_read = "allow"
default_trait_access = "allow"
derive_partial_eq_without_eq = "allow"
doc_markdown = "allow"
drop_non_drop = "allow"
elidable_lifetime_names = "allow"
field_reassign_with_default = "allow"
float_cmp = "allow"
for_kv_map = "allow"
format_collect = "allow"
format_push_string = "allow"
if_not_else = "allow"
if_same_then_else = "allow"
ignore_without_reason = "allow"
ignored_unit_patterns = "allow"
implicit_hasher = "allow"
imprecise_flops = "allow"
io_other_error = "allow"
items_after_statements = "allow"
iter_on_empty_collections = "allow"
iter_on_single_items = "allow"
len_zero = "allow"
let_and_return = "allow"
let_underscore_future = "allow"
manual_div_ceil = "allow"
manual_is_multiple_of = "allow"
manual_let_else = "allow"
manual_range_contains = "allow"
manual_string_new = "allow"
manual_strip = "allow"
manual_unwrap_or_default = "allow"
many_single_char_names = "allow"
map_unwrap_or = "allow"
match_like_matches_macro = "allow"
match_result_ok = "allow"
match_same_arms = "allow"
match_wild_err_arm = "allow"
match_wildcard_for_single_variants = "allow"
missing_const_for_fn = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
needless_borrows_for_generic_args = "allow"
needless_collect = "allow"
needless_continue = "allow"
needless_lifetimes = "allow"
needless_pass_by_value = "allow"
needless_question_mark = "allow"
needless_range_loop = "allow"
needless_raw_string_hashes = "allow"
never_loop = "allow"
new_without_default = "allow"
option_if_let_else = "allow"
or_fun_call = "allow"
redundant_clone = "allow"
redundant_closure = "allow"
redundant_closure_for_method_calls = "allow"
redundant_else = "allow"
redundant_field_names = "allow"
redundant_pub_crate = "allow"
ref_option = "allow"
result_large_err = "allow"
return_self_not_must_use = "allow"
significant_drop_tightening = "allow"
similar_names = "allow"
single_match = "allow"
single_match_else = "allow"
suboptimal_flops = "allow"
too_long_first_doc_paragraph = "allow"
too_many_arguments = "allow"
too_many_lines = "allow"
trailing_empty_array = "allow"
trivially_copy_pass_by_ref = "allow"
type_complexity = "allow"
uninlined_format_args = "allow"
unnecessary_cast = "allow"
unnecessary_literal_bound = "allow"
unnecessary_map_or = "allow"
unnecessary_struct_initialization = "allow"
unnecessary_unwrap = "allow"
unnecessary_wraps = "allow"
unreadable_literal = "allow"
unused_async = "allow"
unused_self = "allow"
unwrap_or_default = "allow"
use_self = "allow"
used_underscore_binding = "allow"
useless_format = "allow"
while_let_loop = "allow"
wildcard_imports = "allow"
wildcard_in_or_patterns = "allow"
write_with_newline = "allow"
writeln_empty_string = "allow"
[lints.clippy.all]
level = "deny"
priority = -1
[lints.clippy.nursery]
level = "warn"
priority = -1
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.rust]
unsafe_code = "forbid"