[package]
edition = "2024"
name = "turnkeeper"
version = "1.2.9"
authors = [
"Excerion Sun <dev@excsn.com>",
"Norm O <normo.pub@gmail.com>",
]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "An asynchronous, recurring job scheduler for Tokio with support for CRON, interval, and weekday/time schedules, plus retries, cancellation, and observability."
homepage = "https://github.com/excsn/turnkeeper"
readme = "README.md"
keywords = [
"scheduler",
"job",
"cron",
"recurring",
"task",
]
categories = [
"asynchronous",
"concurrency",
"date-and-time",
"network-programming",
"web-programming",
]
license = "MPL-2.0"
repository = "https://github.com/excsn/turnkeeper"
[features]
cron_schedule = ["dep:cron"]
default = [
"job_context",
"priority_queue_handle_based",
]
full = [
"default",
"cron_schedule",
"serde",
]
job_context = []
priority_queue_handle_based = ["dep:priority-queue"]
serde = [
"dep:serde",
"chrono/serde",
"uuid/serde",
]
[lib]
name = "turnkeeper"
path = "src/lib.rs"
[[example]]
name = "cancel_recurring"
path = "examples/cancel_recurring.rs"
[[example]]
name = "cron_schedule"
path = "examples/cron_schedule.rs"
required-features = ["cron_schedule"]
[[example]]
name = "job_context"
path = "examples/job_context.rs"
[[example]]
name = "job_definition_helper"
path = "examples/job_definition_helper.rs"
[[example]]
name = "one_time"
path = "examples/one_time.rs"
[[example]]
name = "panic_handling"
path = "examples/panic_handling.rs"
[[example]]
name = "pq_comparison"
path = "examples/pq_comparison.rs"
[[example]]
name = "retry_failure"
path = "examples/retry_failure.rs"
[[example]]
name = "simple_schedule"
path = "examples/simple_schedule.rs"
[[example]]
name = "weekday_schedule"
path = "examples/weekday_schedule.rs"
[[test]]
name = "basic"
path = "tests/basic.rs"
[[test]]
name = "cancel"
path = "tests/cancel.rs"
[[test]]
name = "common"
path = "tests/common.rs"
[[test]]
name = "concurrency"
path = "tests/concurrency.rs"
[[test]]
name = "context"
path = "tests/context.rs"
[[test]]
name = "delete"
path = "tests/delete.rs"
[[test]]
name = "history"
path = "tests/history.rs"
[[test]]
name = "panic"
path = "tests/panic.rs"
[[test]]
name = "recurring"
path = "tests/recurring.rs"
[[test]]
name = "retry"
path = "tests/retry.rs"
[[test]]
name = "schedule_types"
path = "tests/schedule_types.rs"
[[test]]
name = "shutdown"
path = "tests/shutdown.rs"
[[test]]
name = "shutdown_loop"
path = "tests/shutdown_loop.rs"
[[test]]
name = "stall_repro"
path = "tests/stall_repro.rs"
[[test]]
name = "trigger"
path = "tests/trigger.rs"
[[test]]
name = "trigger_lazy"
path = "tests/trigger_lazy.rs"
[[test]]
name = "update"
path = "tests/update.rs"
[dependencies.chrono]
version = "^0.4"
features = ["serde"]
[dependencies.cron]
version = "^0.12"
optional = true
[dependencies.fibre]
version = "0.5"
[dependencies.fibre_cache]
version = "0.4"
features = ["tokio"]
default-features = false
[dependencies.futures]
version = "^0.3"
[dependencies.parking_lot]
version = "^0.12"
[dependencies.priority-queue]
version = "^2.5"
optional = true
[dependencies.serde]
version = "1.0"
features = ["derive"]
optional = true
[dependencies.thiserror]
version = "^2"
[dependencies.tokio]
version = "^1"
features = ["full"]
[dependencies.tracing]
version = "^0.1"
[dependencies.tracing-subscriber]
version = "^0.3"
features = ["env-filter"]
optional = true
[dependencies.uuid]
version = "^1.18"
features = [
"v4",
"serde",
]
[dev-dependencies.anyhow]
version = "^1.0"
[dev-dependencies.tokio]
version = "^1"
features = [
"macros",
"rt-multi-thread",
"time",
]
[dev-dependencies.tracing-subscriber]
version = "^0.3"
features = ["env-filter"]