29 lines
1010 B
TOML
29 lines
1010 B
TOML
[package]
|
|
name = "chronogrid_core"
|
|
description = "Core logic and local-first storage engine for ChronoGrid P2P (SQLCipher + Automerge CRDT)"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
rust-version.workspace = true
|
|
publish = false
|
|
|
|
[features]
|
|
# Enable P2P sync integration with chronogrid_net.
|
|
# When this feature is active, `core::sync::SyncEngine` is available.
|
|
p2p = ["dep:chronogrid_net", "dep:tokio", "dep:tracing"]
|
|
|
|
[dependencies]
|
|
automerge = "0.5"
|
|
rusqlite = { version = "0.31", features = ["bundled-sqlcipher-vendored-openssl", "blob"] }
|
|
thiserror = "2"
|
|
uuid = { version = "1", features = ["v4"] }
|
|
|
|
# Optional P2P sync dependencies (enabled by the "p2p" feature).
|
|
chronogrid_net = { path = "../chronogrid_net", optional = true }
|
|
tokio = { version = "1", features = ["sync", "rt"], optional = true }
|
|
tracing = { version = "0.1", optional = true }
|
|
|
|
[dev-dependencies]
|
|
tempfile = "3"
|
|
tokio = { version = "1", features = ["full"] }
|
|
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
|