[package]
name = "vapora-shared"
version.workspace = true
edition.workspace = true
authors.workspace = true
license.workspace = true
repository.workspace = true
rust-version.workspace = true

[lib]
crate-type = ["rlib"]

[dependencies]
# Serialization
serde = { workspace = true }
serde_json = { workspace = true }
toml = { workspace = true }

# Error handling
thiserror = { workspace = true }

# Utilities
uuid = { workspace = true }
chrono = { workspace = true }

# Database (for error conversion) - optional for WASM
surrealdb = { workspace = true, optional = true }

# Logging
tracing = { workspace = true }

# Validation
regex = { workspace = true }

# Async runtime (for validation pipeline) - backend only
tokio = { workspace = true, features = ["process", "io-util"], optional = true }

[features]
default = ["backend"]
backend = ["surrealdb", "tokio"]

[dev-dependencies]
# Testing
