[package]
name = "syntaxis-core"
version.workspace = true
edition.workspace = true
rust-version.workspace = true
authors.workspace = true
license.workspace = true
repository.workspace = true
description = "Core library for syntaxis management"

[dependencies]
# Shared tools utilities
tools-shared = { path = "../../../shared/rust" }

# Ecosystem bridge for task actions and integrations
syntaxis-bridge = { path = "../syntaxis-bridge" }

# Serialization
serde = { workspace = true }
serde_json = { workspace = true }
toml = { workspace = true }
uuid = { workspace = true }

# Error handling
thiserror = { workspace = true }
anyhow = { workspace = true }

# Async runtime
tokio = { workspace = true }
async-trait = { workspace = true }

# Logging
tracing = { workspace = true }
tracing-subscriber = { workspace = true }

# Date/time
chrono = { workspace = true }

# File operations
camino = { workspace = true }
walkdir = { workspace = true }

# Templating
handlebars = { workspace = true }

# Database
sqlx = { workspace = true }
surrealdb = { workspace = true, optional = true }
serde_bytes = { workspace = true }

# Other utilities
indexmap = { workspace = true }
regex = { workspace = true }

# External integrations
# Note: doc-lifecycle integration can be added later
# vapora-doc-lifecycle = { path = "../../../Tools/doc-syntaxis/crates/vapora-doc-lifecycle", optional = true }
# doc-syntaxis-core = { path = "../../../Tools/doc-syntaxis/crates/doc-syntaxis-core", optional = true }

[dev-dependencies]
tokio-test = { workspace = true }
tempfile = { workspace = true }

[features]
# Enable SurrealDB support (includes embedded database)
surrealdb = ["dep:surrealdb"]
default = ["surrealdb"]
