[package]
edition = "2024"
rust-version = "1.91"
name = "cognee-http-server"
version = "0.1.0"
authors = ["Topoteretes <support@cognee.ai>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "HTTP server exposing the cognee add/cognify/search pipeline (single-user, no-auth)."
homepage = "https://www.cognee.ai"
readme = "README.md"
keywords = [
"ai",
"knowledge-graph",
"memory",
"rag",
"embeddings",
]
categories = [
"science",
"database",
"text-processing",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/topoteretes/cognee-rs"
[package.metadata.docs.rs]
features = ["cognee-embedding/onnx-dynamic"]
rustdoc-args = [
"--cfg",
"docsrs",
]
[features]
bin = [
"dep:clap",
"dep:dotenv",
"tokio/macros",
"tokio/rt-multi-thread",
"tokio/signal",
]
default = [
"telemetry",
"html-loader",
]
dev-mock = ["cognee-vector/testing"]
html-loader = [
"cognee-ingestion/html-loader",
"cognee-cognify/html-loader",
]
telemetry = [
"dep:cognee-observability",
"dep:cognee-telemetry",
"cognee-observability/telemetry",
"cognee-core/telemetry",
"cognee-telemetry/telemetry",
"cognee-search/telemetry",
"cognee-session/telemetry",
]
[lib]
name = "cognee_http_server"
path = "src/lib.rs"
[[bin]]
name = "cognee-http-server"
path = "src/main.rs"
required-features = ["bin"]
[[test]]
name = "logging_e2e"
path = "tests/logging_e2e.rs"
[[test]]
name = "test_activity_spans"
path = "tests/test_activity_spans.rs"
[[test]]
name = "test_cognify_blocking"
path = "tests/test_cognify_blocking.rs"
[[test]]
name = "test_cognify_websocket"
path = "tests/test_cognify_websocket.rs"
[[test]]
name = "test_cors"
path = "tests/test_cors.rs"
[[test]]
name = "test_dto_wire_shape"
path = "tests/test_dto_wire_shape.rs"
[[test]]
name = "test_health"
path = "tests/test_health.rs"
[[test]]
name = "test_health_real"
path = "tests/test_health_real.rs"
[[test]]
name = "test_improve_420"
path = "tests/test_improve_420.rs"
[[test]]
name = "test_ontology_cognify_search_e2e"
path = "tests/test_ontology_cognify_search_e2e.rs"
[[test]]
name = "test_openapi"
path = "tests/test_openapi.rs"
[[test]]
name = "test_openapi_camelcase"
path = "tests/test_openapi_camelcase.rs"
[[test]]
name = "test_recall"
path = "tests/test_recall.rs"
[[test]]
name = "test_remember_entry"
path = "tests/test_remember_entry.rs"
[[test]]
name = "test_root"
path = "tests/test_root.rs"
[[test]]
name = "test_search_history"
path = "tests/test_search_history.rs"
[[test]]
name = "test_search_post"
path = "tests/test_search_post.rs"
[[test]]
name = "test_span_redaction"
path = "tests/test_span_redaction.rs"
[[test]]
name = "test_visualize_single"
path = "tests/test_visualize_single.rs"
[dependencies.anyhow]
version = "1"
[dependencies.async-trait]
version = "0.1.89"
[dependencies.axum]
version = "0.8"
features = [
"multipart",
"ws",
]
[dependencies.bytes]
version = "1"
[dependencies.chrono]
version = "0.4.41"
features = [
"serde",
"clock",
"std",
"serde",
]
default-features = false
[dependencies.clap]
version = "4.5"
features = [
"derive",
"env",
]
optional = true
[dependencies.cognee-cognify]
version = "0.1.0"
[dependencies.cognee-core]
version = "0.1.0"
features = ["pipeline-run-registry"]
[dependencies.cognee-database]
version = "0.1.0"
features = ["sqlite"]
[dependencies.cognee-delete]
version = "0.1.0"
[dependencies.cognee-embedding]
version = "0.1.0"
features = ["onnx"]
[dependencies.cognee-graph]
version = "0.1.0"
features = ["ladybug"]
[dependencies.cognee-ingestion]
version = "0.1.0"
[dependencies.cognee-llm]
version = "0.1.0"
[dependencies.cognee-logging]
version = "0.1.0"
[dependencies.cognee-models]
version = "0.1.0"
[dependencies.cognee-observability]
version = "0.1.0"
optional = true
[dependencies.cognee-ontology]
version = "0.1.0"
[dependencies.cognee-search]
version = "0.1.0"
[dependencies.cognee-session]
version = "0.1.0"
[dependencies.cognee-storage]
version = "0.1.0"
[dependencies.cognee-telemetry]
version = "0.1.0"
features = ["telemetry"]
optional = true
[dependencies.cognee-utils]
version = "0.1.0"
[dependencies.cognee-vector]
version = "0.1.0"
features = ["pgvector"]
[dependencies.cognee-visualization]
version = "0.1.0"
[dependencies.dashmap]
version = "6"
[dependencies.dotenv]
version = "0.15"
optional = true
[dependencies.form_urlencoded]
version = "1"
[dependencies.futures]
version = "0.3"
[dependencies.hyper]
version = "1"
features = [
"server",
"http1",
"http2",
]
[dependencies.mime_guess]
version = "2"
[dependencies.rand]
version = "0.8"
[dependencies.sea-orm]
version = "1"
features = [
"runtime-tokio-rustls",
"with-chrono",
"with-uuid",
"with-json",
]
default-features = false
[dependencies.secrecy]
version = "0.10"
[dependencies.serde]
version = "1"
features = [
"derive",
"derive",
]
[dependencies.serde_json]
version = "1"
[dependencies.serde_path_to_error]
version = "0.1"
[dependencies.serde_urlencoded]
version = "0.7"
[dependencies.sha2]
version = "0.10"
[dependencies.thiserror]
version = "2.0"
[dependencies.tokio]
version = "1"
features = [
"rt-multi-thread",
"macros",
"sync",
"time",
"fs",
"io-util",
"rt",
"sync",
"time",
"net",
"io-util",
"fs",
"process",
]
[dependencies.tokio-util]
version = "0.7"
features = ["io"]
[dependencies.tower]
version = "0.5"
[dependencies.tower-http]
version = "0.6"
features = [
"cors",
"trace",
"limit",
]
[dependencies.tracing]
version = "0.1"
[dependencies.tracing-subscriber]
version = "0.3"
features = [
"env-filter",
"fmt",
"json",
"registry",
"std",
]
[dependencies.utoipa]
version = "5"
features = [
"axum_extras",
"uuid",
"chrono",
]
[dependencies.uuid]
version = "1.21"
features = [
"v4",
"v5",
"serde",
"v4",
"v5",
"serde",
]
[dev-dependencies.async-trait]
version = "0.1.89"
[dev-dependencies.chrono]
version = "0.4.41"
features = [
"serde",
"clock",
"std",
]
default-features = false
[dev-dependencies.dotenv]
version = "0.15"
[dev-dependencies.sea-orm]
version = "1"
features = [
"sqlx-sqlite",
"runtime-tokio-native-tls",
"macros",
]
default-features = false
[dev-dependencies.serde_json]
version = "1"
[dev-dependencies.serial_test]
version = "3.2"
[dev-dependencies.tempfile]
version = "3"
[dev-dependencies.tokio]
version = "1"
features = [
"rt-multi-thread",
"macros",
"sync",
"time",
"fs",
"io-util",
"rt",
"rt-multi-thread",
"macros",
]
[dev-dependencies.tower]
version = "0.5"
features = ["util"]
[target."cfg(unix)".dependencies.libc]
version = "0.2"
[lints.clippy]
expect_used = "warn"
unwrap_used = "warn"