[package]
edition = "2024"
rust-version = "1.91"
name = "hirnd"
version = "0.1.0"
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "hirn standalone daemon — gRPC, HTTP, and MCP server for cognitive memory"
readme = "README.md"
license = "Apache-2.0"
resolver = "2"
[package.metadata.cargo-machete]
ignored = ["schemars"]
[features]
default = []
serverless = [
"aws-sdk-dynamodb",
"aws-sdk-s3",
"aws-config",
]
[lib]
name = "hirnd"
path = "src/lib.rs"
[[bin]]
name = "hirnd"
path = "src/main.rs"
[[example]]
name = "gen_seed"
path = "examples/gen_seed.rs"
[[test]]
name = "cli"
path = "tests/cli.rs"
[[test]]
name = "config_ops"
path = "tests/config_ops.rs"
[[test]]
name = "crash_recovery"
path = "tests/crash_recovery.rs"
[[test]]
name = "cross_interface"
path = "tests/cross_interface.rs"
[[test]]
name = "grpc_integration"
path = "tests/grpc_integration.rs"
[[test]]
name = "integration"
path = "tests/integration.rs"
[[test]]
name = "mcp_integration"
path = "tests/mcp_integration.rs"
[[test]]
name = "proto_roundtrip"
path = "tests/proto_roundtrip.rs"
[[test]]
name = "raft_integration"
path = "tests/raft_integration.rs"
[[test]]
name = "realm_isolation"
path = "tests/realm_isolation.rs"
[[test]]
name = "tls_integration"
path = "tests/tls_integration.rs"
[[test]]
name = "token_session"
path = "tests/token_session.rs"
[dependencies.anyerror]
version = "0.1"
[dependencies.async-stream]
version = "0.3"
[dependencies.aws-config]
version = "1"
optional = true
[dependencies.aws-sdk-dynamodb]
version = "1"
optional = true
[dependencies.aws-sdk-s3]
version = "1"
optional = true
[dependencies.axum]
version = "0.8"
features = ["json"]
[dependencies.bincode]
version = "1"
[dependencies.blake3]
version = "1"
[dependencies.chrono]
version = "0.4"
features = ["serde"]
[dependencies.clap]
version = "4"
features = ["derive"]
[dependencies.getrandom]
version = "0.3"
[dependencies.hirn]
version = "0.1.0"
[dependencies.hirn-core]
version = "0.1.0"
[dependencies.hirn-engine]
version = "0.1.0"
[dependencies.hirn-storage]
version = "0.1.0"
[dependencies.hyper]
version = "1"
[dependencies.hyper-util]
version = "0.1"
features = [
"tokio",
"server-auto",
"http1",
"http2",
]
[dependencies.jsonwebtoken]
version = "10"
features = ["rust_crypto"]
[dependencies.metrics]
version = "0.24"
[dependencies.metrics-exporter-prometheus]
version = "0.16"
[dependencies.openraft]
version = "0.9"
features = [
"serde",
"storage-v2",
]
[dependencies.opentelemetry]
version = "0.28"
[dependencies.opentelemetry-otlp]
version = "0.28"
features = ["grpc-tonic"]
[dependencies.opentelemetry_sdk]
version = "0.28"
features = ["rt-tokio"]
[dependencies.parking_lot]
version = "0.12"
[dependencies.prost]
version = "0.13"
[dependencies.rcgen]
version = "0.13"
[dependencies.redb]
version = "2"
[dependencies.reqwest]
version = "0.12"
features = ["json"]
[dependencies.rmcp]
version = "0.1"
features = [
"server",
"transport-sse-server",
]
[dependencies.rustls]
version = "0.23"
features = [
"ring",
"logging",
"std",
"tls12",
]
default-features = false
[dependencies.rustls-pemfile]
version = "2"
[dependencies.schemars]
version = "0.8"
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.serde_json]
version = "1"
features = ["raw_value"]
[dependencies.subtle]
version = "2"
[dependencies.tempfile]
version = "3"
[dependencies.tokio]
version = "1"
features = ["full"]
[dependencies.tokio-rustls]
version = "0.26"
[dependencies.tokio-stream]
version = "0.1"
[dependencies.toml]
version = "0.8"
[dependencies.tonic]
version = "0.13"
features = ["tls-ring"]
[dependencies.tower]
version = "0.5"
features = ["util"]
[dependencies.tracing]
version = "0.1"
[dependencies.tracing-opentelemetry]
version = "0.29"
[dependencies.tracing-subscriber]
version = "0.3"
features = [
"json",
"env-filter",
"registry",
]
[dependencies.ulid]
version = "1"
features = ["serde"]
[dependencies.x509-parser]
version = "0.18"
[dependencies.zeroize]
version = "1"
features = ["derive"]
[dev-dependencies.reqwest]
version = "0.12"
features = [
"json",
"blocking",
]
[dev-dependencies.rmcp]
version = "0.1"
features = [
"server",
"client",
"transport-sse-server",
]
[dev-dependencies.tempfile]
version = "3"
[build-dependencies.tonic-build]
version = "0.13"
[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"