# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2021"
name = "runat"
version = "0.1.3"
authors = ["swervv"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A distributed job scheduler for Rust"
readme = "README.md"
keywords = [
    "job",
    "scheduler",
    "distributed",
    "async",
    "postgres",
]
categories = [
    "asynchronous",
    "database",
]
license = "MIT"
repository = "https://github.com/swervv/runat"

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

[lib]
name = "runat"
path = "src/lib.rs"

[[test]]
name = "integration_test"
path = "tests/integration_test.rs"

[dependencies.anyhow]
version = "1.0"

[dependencies.async-trait]
version = "0.1"

[dependencies.chrono]
version = "0.4"
features = ["serde"]

[dependencies.cron]
version = "0.15.0"

[dependencies.dashmap]
version = "6.1"

[dependencies.futures]
version = "0.3"

[dependencies.once_cell]
version = "1.20"

[dependencies.runat-macros]
version = "0.1.2"

[dependencies.serde]
version = "1.0"
features = ["derive"]

[dependencies.serde_json]
version = "1.0"

[dependencies.serde_with]
version = "3.11"

[dependencies.sqlx]
version = "0.8"
features = [
    "runtime-tokio",
    "postgres",
    "chrono",
    "uuid",
    "json",
]
optional = true

[dependencies.thiserror]
version = "1.0"

[dependencies.tokio]
version = "1.42"
features = ["full"]

[dependencies.tracing]
version = "0.1"
optional = true

[dependencies.uuid]
version = "1.11"
features = [
    "v4",
    "serde",
]

[dev-dependencies.serial_test]
version = "3.2"

[dev-dependencies.tokio]
version = "1.42"
features = [
    "full",
    "test-util",
]
