[package]
edition = "2021"
name = "cognis-graph"
version = "0.3.1"
authors = ["Vasanth <itsparser@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Stateful graph engine for Cognis: typed Graph<S>, Pregel-style superstep executor, per-field reducers, interrupts, time-travel via checkpointers (in-memory, SQLite, Postgres), and streaming."
readme = "README.md"
license = "MIT"
repository = "https://github.com/0xvasanth/cognis"
[features]
default = []
postgres = [
"dep:sqlx",
"sqlx/postgres",
"sqlx/uuid",
]
serializer-cbor = ["dep:ciborium"]
sqlite = [
"dep:sqlx",
"sqlx/sqlite",
]
[lib]
name = "cognis_graph"
path = "src/lib.rs"
[[test]]
name = "agent_loop"
path = "tests/agent_loop.rs"
[[test]]
name = "ephemeral"
path = "tests/ephemeral.rs"
[[test]]
name = "parallel"
path = "tests/parallel.rs"
[dependencies.async-trait]
version = "0.1"
[dependencies.ciborium]
version = "0.2"
optional = true
[dependencies.cognis-core]
version = "0.3.1"
[dependencies.cognis-macros]
version = "0.3.1"
[dependencies.futures]
version = "0.3"
[dependencies.schemars]
version = "0.8"
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.serde_json]
version = "1"
[dependencies.sqlx]
version = "0.8"
features = ["runtime-tokio"]
optional = true
default-features = false
[dependencies.tokio]
version = "1"
features = ["full"]
[dependencies.tokio-stream]
version = "0.1"
[dependencies.tracing]
version = "0.1"
[dependencies.uuid]
version = "1"
features = [
"v4",
"v7",
"serde",
]
[dev-dependencies.tempfile]
version = "3"
[dev-dependencies.tokio]
version = "1"
features = [
"full",
"test-util",
"macros",
]