[package]
edition = "2021"
name = "brain-edge"
version = "0.2.1"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "The HTTP/JSON edge for the Brain memory database — a self-hostable binary and an embeddable library that speaks the same API the Arc cloud hosts."
readme = "README.md"
keywords = [
"brain",
"memory",
"database",
"http",
"edge",
]
categories = [
"database",
"web-programming::http-server",
]
license = "Apache-2.0"
repository = "https://github.com/arc-labs-ai/brain-edge"
[lib]
name = "brain_edge"
path = "src/lib.rs"
[[bin]]
name = "brain-edge"
path = "src/main.rs"
[[test]]
name = "handlers"
path = "tests/handlers.rs"
[[test]]
name = "hardening"
path = "tests/hardening.rs"
[[test]]
name = "ports"
path = "tests/ports.rs"
[dependencies.arc-swap]
version = "1"
[dependencies.async-trait]
version = "0.1"
[dependencies.axum]
version = "0.8"
[dependencies.brain-db-sdk]
version = "0.2.0"
[dependencies.reqwest]
version = "0.12"
features = [
"stream",
"rustls-tls",
]
default-features = false
[dependencies.ring]
version = "0.17"
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.serde_json]
version = "1"
[dependencies.subtle]
version = "2"
[dependencies.tokio]
version = "1"
features = ["full"]
[dependencies.tower-http]
version = "0.6"
features = [
"trace",
"timeout",
"limit",
"sensitive-headers",
"catch-panic",
"request-id",
]
[dependencies.tracing]
version = "0.1"
[dependencies.tracing-subscriber]
version = "0.3"
features = [
"env-filter",
"fmt",
]
[dependencies.zeroize]
version = "1"
[dev-dependencies.tempfile]
version = "3"
[dev-dependencies.tower]
version = "0.5"
features = ["util"]
[lints.clippy]
doc_markdown = "allow"
double_must_use = "allow"
duration_suboptimal_units = "allow"
missing_const_for_fn = "allow"
missing_errors_doc = "allow"
multiple_crate_versions = "allow"
must_use_candidate = "allow"
needless_pass_by_value = "allow"
option_if_let_else = "allow"
significant_drop_tightening = "allow"
struct_excessive_bools = "allow"
too_long_first_doc_paragraph = "allow"
[lints.clippy.cargo]
level = "warn"
priority = -1
[lints.clippy.nursery]
level = "warn"
priority = -1
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.rust]
missing_debug_implementations = "warn"
missing_docs = "warn"
unreachable_pub = "warn"
unsafe_code = "forbid"
[lints.rust.rust_2018_idioms]
level = "warn"
priority = -1