# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
name = "second-brain-core"
version = "0.5.1"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Core library for second-brain: KuzuDB graph storage, BGE embeddings, and weighted query engine"
readme = false
keywords = [
    "memory",
    "knowledge-graph",
    "embeddings",
    "kuzudb",
    "vector-search",
]
categories = [
    "database",
    "data-structures",
]
license = "MIT"
repository = "https://github.com/Anyesh/second-brain"
resolver = "2"

[lib]
name = "second_brain_core"
path = "src/lib.rs"

[[test]]
name = "all_memories_with_embeddings"
path = "tests/all_memories_with_embeddings.rs"

[[test]]
name = "embed_query"
path = "tests/embed_query.rs"

[[test]]
name = "machine_identity"
path = "tests/machine_identity.rs"

[[test]]
name = "memory_machine_id"
path = "tests/memory_machine_id.rs"

[[test]]
name = "memory_updated_at"
path = "tests/memory_updated_at.rs"

[[test]]
name = "sync_log"
path = "tests/sync_log.rs"

[[test]]
name = "tombstones"
path = "tests/tombstones.rs"

[dependencies.anyhow]
version = "1"

[dependencies.chrono]
version = "0.4"
features = ["serde"]

[dependencies.dirs]
version = "6"

[dependencies.fastembed]
version = "5"

[dependencies.hostname]
version = "0.4"

[dependencies.kuzu]
version = "0.11"

[dependencies.serde]
version = "1"
features = ["derive"]

[dependencies.serde_json]
version = "1"

[dependencies.tokio]
version = "1"
features = ["full"]

[dependencies.toml]
version = "0.8"

[dependencies.tracing]
version = "0.1"

[dependencies.uuid]
version = "1"
features = [
    "v4",
    "v5",
    "serde",
]

[dev-dependencies.tempfile]
version = "3"

[build-dependencies.cxx-build]
version = "=1.0.138"
