[package]
name = "runat"
version.workspace = true
edition.workspace = true
repository.workspace = true
authors.workspace = true
license.workspace = true
description = "A distributed job scheduler for Rust"
keywords = ["job", "scheduler", "distributed", "async", "postgres"]
categories = ["asynchronous", "database"]

[dependencies]
tokio = { workspace = true }
serde = { workspace = true }
serde_json = { workspace = true }
serde_with = { workspace = true }
chrono = { workspace = true }
anyhow = { workspace = true }
thiserror = { workspace = true }
uuid = { workspace = true }
futures = { workspace = true }
async-trait = { workspace = true }
cron = { workspace = true }

once_cell = { workspace = true }
dashmap = { workspace = true }

# Optional dependencies
sqlx = { workspace = true, optional = true }
tracing = { workspace = true, optional = true }

# Runat macros
runat-macros = "0.1.2"

[dev-dependencies]
tokio = { workspace = true, features = ["test-util"] }
serial_test = "3.2"

[features]
default = ["postgres"]
postgres = ["dep:sqlx"]
tracing = ["dep:tracing"]
