# 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"
rust-version = "1.95"
name = "entelix-graphmemory-pg"
version = "0.5.4"
authors = ["junyeong-ai"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "entelix concrete GraphMemory — sqlx + Postgres backend (nodes + typed timestamped edges)"
documentation = "https://docs.rs/entelix"
readme = "README.md"
keywords = [
    "ai",
    "agent",
    "llm",
    "graph",
    "runtime",
]
categories = [
    "api-bindings",
    "asynchronous",
]
license = "MIT"
repository = "https://github.com/junyeong-ai/entelix"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

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

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

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

[dependencies.async-trait]
version = "0.1"

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

[dependencies.entelix-core]
version = "0.5.4"

[dependencies.entelix-memory]
version = "0.5.4"

[dependencies.serde]
version = "1.0"
features = [
    "derive",
    "rc",
]

[dependencies.serde_json]
version = "1.0"

[dependencies.sqlx]
version = "0.8"
features = [
    "runtime-tokio",
    "tls-rustls",
    "postgres",
    "json",
    "chrono",
    "uuid",
    "rust_decimal",
    "macros",
    "migrate",
]
default-features = false

[dependencies.thiserror]
version = "2.0"

[dev-dependencies.testcontainers]
version = "0.27"
features = ["watchdog"]

[dev-dependencies.testcontainers-modules]
version = "0.15"
features = [
    "postgres",
    "redis",
]

[dev-dependencies.tokio]
version = "1.52"
features = [
    "rt-multi-thread",
    "macros",
    "sync",
    "time",
    "io-util",
    "signal",
    "macros",
    "rt",
    "rt-multi-thread",
]

[lints.clippy]
await_holding_lock = "deny"
await_holding_refcell_ref = "deny"
dbg_macro = "deny"
duration_suboptimal_units = "allow"
expect_used = "warn"
indexing_slicing = "warn"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
print_stderr = "deny"
print_stdout = "deny"
return_self_not_must_use = "allow"
similar_names = "warn"
struct_excessive_bools = "warn"
todo = "warn"
unimplemented = "warn"
unwrap_used = "warn"

[lints.clippy.all]
level = "warn"
priority = -1

[lints.clippy.nursery]
level = "warn"
priority = -1

[lints.clippy.pedantic]
level = "warn"
priority = -1

[lints.rust]
missing_docs = "warn"
unreachable_pub = "warn"
unsafe_code = "forbid"

[lints.rust.rust_2024_compatibility]
level = "warn"
priority = -1

[lints.rustdoc]
bare_urls = "deny"
broken_intra_doc_links = "deny"
invalid_codeblock_attributes = "deny"
invalid_html_tags = "deny"
invalid_rust_codeblocks = "deny"
private_intra_doc_links = "deny"
unescaped_backticks = "deny"
